mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-12-24 22:15:33 +00:00
Fixed the login process when two-factor authorization is used.
This commit is contained in:
parent
458894a8bf
commit
24f8320a42
@ -69,7 +69,7 @@ public class UserManager {
|
||||
this.auth = client.authSignIn(phone, this.sent_code.getPhoneCodeHash(), this.code);
|
||||
this.user = auth.getUser().getAsUser();
|
||||
} 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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user