mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2025-07-21 13:16:21 +00:00
Fixed the login process when two-factor authorization is used.
This commit is contained in:
@@ -69,7 +69,7 @@ public class UserManager {
|
|||||||
this.auth = client.authSignIn(phone, this.sent_code.getPhoneCodeHash(), this.code);
|
this.auth = client.authSignIn(phone, this.sent_code.getPhoneCodeHash(), this.code);
|
||||||
this.user = auth.getUser().getAsUser();
|
this.user = auth.getUser().getAsUser();
|
||||||
} catch (RpcErrorException e) {
|
} catch (RpcErrorException e) {
|
||||||
if (!e.getTag().equals("401: SESSION_PASSWORD_NEEDED")) throw e;
|
if (e.getCode()!=401 || !e.getTag().equals("SESSION_PASSWORD_NEEDED")) throw e;
|
||||||
this.password_needed = true;
|
this.password_needed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user