Добавлена передача email при входе в неактивированный аккаунт

This commit is contained in:
ErickSkrauch
2016-03-13 21:46:22 +03:00
parent 7b9119ef79
commit 6b04860f0e
3 changed files with 9 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ class LoginForm extends BaseApiForm {
/**
* @return Account|null
*/
protected function getAccount() {
public function getAccount() {
if ($this->_account === NULL) {
$attribute = strpos($this->login, '@') ? 'email' : 'username';
$this->_account = Account::findOne([$attribute => $this->login]);