Fix log in after password change by email.

This commit is contained in:
John Preston 2021-08-17 15:37:17 +03:00
parent d80b25944e
commit 5383ae3d96
2 changed files with 7 additions and 5 deletions

View file

@ -324,7 +324,7 @@ passcodePadding: margins(0px, 0px, 0px, 5px);
passcodeTextLine: 28px;
passcodeLittleSkip: 5px;
passcodeAboutSkip: 7px;
passcodeSkip: 20px;
passcodeSkip: 23px;
newGroupAboutFg: windowSubTextFg;
newGroupPadding: margins(4px, 6px, 4px, 3px);

View file

@ -437,6 +437,7 @@ void PasscodeBox::recoverPasswordDone(
_setRequest = 0;
const auto weak = Ui::MakeWeak(this);
_newAuthorization.fire_copy(result);
if (weak) {
_newPasswordSet.fire_copy(newPasswordBytes);
if (weak) {
getDelegate()->show(Box<InformBox>(
@ -445,6 +446,7 @@ void PasscodeBox::recoverPasswordDone(
closeBox();
}
}
}
}
void PasscodeBox::setPasswordDone(const QByteArray &newPasswordBytes) {