mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 08:46:15 +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