mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Первичное портирование логики сервера авторизации с PhalconPHP на Yii2
This commit is contained in:
@@ -52,6 +52,7 @@ class LoginForm extends ApiForm {
|
||||
}
|
||||
|
||||
public function validateActivity($attribute) {
|
||||
// TODO: проверить, не заблокирован ли аккаунт
|
||||
if (!$this->hasErrors()) {
|
||||
$account = $this->getAccount();
|
||||
if ($account->status !== Account::STATUS_ACTIVE) {
|
||||
|
Reference in New Issue
Block a user