2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

select wrong passcode / password when showing error message

This commit is contained in:
John Preston
2015-11-24 13:29:37 +03:00
parent e5c82fad21
commit 3cf4c7f2fc
4 changed files with 6 additions and 4 deletions

View File

@@ -356,6 +356,7 @@ void PasscodeBox::onSave(bool force) {
return;
}
if (pwd != conf) {
_reenterPasscode.selectAll();
_reenterPasscode.setFocus();
_reenterPasscode.showError();
if (!conf.isEmpty()) {
@@ -603,6 +604,8 @@ bool RecoverBox::codeSubmitFail(const RPCError &error) {
} else if (err == "CODE_INVALID") {
_error = lang(lng_signin_wrong_code);
update();
_recoverCode.selectAll();
_recoverCode.setFocus();
_recoverCode.showError();
return true;
} else if (mtpIsFlood(error)) {