2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

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

@@ -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();
}
}
}
}