mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Добавлена передача email при входе в неактивированный аккаунт
This commit is contained in:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user