Send updateAuthorizationState after password recovery requested.

GitOrigin-RevId: e01fbf692be70a9de7f2e56e4469fe1795721172
This commit is contained in:
levlam 2018-01-05 13:44:36 +03:00
parent d990fd21d2
commit dc113f2b84
2 changed files with 1 additions and 3 deletions

View File

@ -615,7 +615,6 @@ void AuthManager::on_get_password_result(NetQueryPtr &result) {
if (password->get_id() == telegram_api::account_noPassword::ID) {
auto no_password = move_tl_object_as<telegram_api::account_noPassword>(password);
new_salt_ = no_password->new_salt_.as_slice().str();
email_address_unconfirmed_pattern_ = no_password->email_unconfirmed_pattern_;
} else {
CHECK(password->get_id() == telegram_api::account_password::ID);
auto password_info = move_tl_object_as<telegram_api::account_password>(password);
@ -623,7 +622,6 @@ void AuthManager::on_get_password_result(NetQueryPtr &result) {
new_salt_ = password_info->new_salt_.as_slice().str();
hint_ = password_info->hint_;
has_recovery_ = password_info->has_recovery_;
email_address_unconfirmed_pattern_ = password_info->email_unconfirmed_pattern_;
}
update_state(State::WaitPassword);
on_query_ok();
@ -637,6 +635,7 @@ void AuthManager::on_request_password_recovery_result(NetQueryPtr &result) {
auto email_address_pattern = r_email_address_pattern.move_as_ok();
CHECK(email_address_pattern->get_id() == telegram_api::auth_passwordRecovery::ID);
email_address_pattern_ = email_address_pattern->email_pattern_;
update_state(State::WaitPassword, true);
on_query_ok();
}

View File

@ -160,7 +160,6 @@ class AuthManager : public NetActor {
string new_salt_;
string hint_;
bool has_recovery_;
string email_address_unconfirmed_pattern_;
string email_address_pattern_;
bool was_check_bot_token_ = false;