Allow to check code before entering first name on registration.

GitOrigin-RevId: be08dd29486959d4059f72af61c4c630afc812c3
This commit is contained in:
levlam 2018-06-01 01:27:34 +03:00
parent 8750c7a41a
commit a038754fcb

View File

@ -568,7 +568,7 @@ void AuthManager::check_code(uint64 query_id, string code, string first_name, st
}
on_new_query(query_id);
if (send_code_helper_.phone_registered()) {
if (send_code_helper_.phone_registered() || first_name.empty()) {
start_net_query(NetQueryType::SignIn,
G()->net_query_creator().create(
create_storer(telegram_api::auth_signIn(send_code_helper_.phone_number().str(),