mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Use crl::time/now instead of TimeMs/getms.
This commit is contained in:
@@ -372,7 +372,7 @@ void PasscodeBox::validateEmail(
|
||||
}
|
||||
|
||||
void PasscodeBox::handleSrpIdInvalid() {
|
||||
const auto now = getms(true);
|
||||
const auto now = crl::now();
|
||||
if (_lastSrpIdInvalidTime > 0
|
||||
&& now - _lastSrpIdInvalidTime < Core::kHandleSrpIdInvalidTimeout) {
|
||||
_curRequest.id = 0;
|
||||
@@ -403,7 +403,7 @@ void PasscodeBox::save(bool force) {
|
||||
if (_turningOff) pwd = conf = QString();
|
||||
} else {
|
||||
cSetPasscodeBadTries(cPasscodeBadTries() + 1);
|
||||
cSetPasscodeLastTry(getms(true));
|
||||
cSetPasscodeLastTry(crl::now());
|
||||
badOldPasscode();
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user