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; passcodeTextLine: 28px;
passcodeLittleSkip: 5px; passcodeLittleSkip: 5px;
passcodeAboutSkip: 7px; passcodeAboutSkip: 7px;
passcodeSkip: 20px; passcodeSkip: 23px;
newGroupAboutFg: windowSubTextFg; newGroupAboutFg: windowSubTextFg;
newGroupPadding: margins(4px, 6px, 4px, 3px); newGroupPadding: margins(4px, 6px, 4px, 3px);

View file

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