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,12 +437,14 @@ void PasscodeBox::recoverPasswordDone(
_setRequest = 0;
const auto weak = Ui::MakeWeak(this);
_newAuthorization.fire_copy(result);
_newPasswordSet.fire_copy(newPasswordBytes);
if (weak) {
getDelegate()->show(Box<InformBox>(
tr::lng_cloud_password_updated(tr::now)));
_newPasswordSet.fire_copy(newPasswordBytes);
if (weak) {
closeBox();
getDelegate()->show(Box<InformBox>(
tr::lng_cloud_password_updated(tr::now)));
if (weak) {
closeBox();
}
}
}
}