From 3684603bd082f09d9619406ac549aa5391ef13b2 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 19 May 2017 11:07:45 +0100 Subject: [PATCH] bugfix --- src/danog/MadelineProto/Wrappers/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/Wrappers/Login.php b/src/danog/MadelineProto/Wrappers/Login.php index b76659f0..ce692e9d 100644 --- a/src/danog/MadelineProto/Wrappers/Login.php +++ b/src/danog/MadelineProto/Wrappers/Login.php @@ -118,7 +118,7 @@ trait Login $this->login_temp_status = 'waiting_password'; $this->should_serialize = true; - return $this->authorization = $this->account->getPassword(); + return $this->authorization = $this->method_call('account.getPassword', [], ['datacenter' => $this->datacenter->curdc]); } if ($e->rpc === 'PHONE_NUMBER_UNOCCUPIED') { \danog\MadelineProto\Logger::log(['An account has not been created for this number, you will have to call the complete_signup function...'], \danog\MadelineProto\Logger::NOTICE);