Bugfix
This commit is contained in:
parent
58823a86b9
commit
195d0a273c
@ -108,6 +108,7 @@ trait Login
|
|||||||
if ($e->getMessage() === 'SESSION_PASSWORD_NEEDED') {
|
if ($e->getMessage() === 'SESSION_PASSWORD_NEEDED') {
|
||||||
\danog\MadelineProto\Logger::log(['2FA enabled, you will have to call the complete_2fa_login function...'], \danog\MadelineProto\Logger::NOTICE);
|
\danog\MadelineProto\Logger::log(['2FA enabled, you will have to call the complete_2fa_login function...'], \danog\MadelineProto\Logger::NOTICE);
|
||||||
$this->API->datacenter->login_temp_status = 'waiting_password';
|
$this->API->datacenter->login_temp_status = 'waiting_password';
|
||||||
|
$this->API->should_serialize = true;
|
||||||
|
|
||||||
return $this->API->datacenter->authorization = $this->account->getPassword();
|
return $this->API->datacenter->authorization = $this->account->getPassword();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user