瀏覽代碼

Correctif connexion (filtre sur type individual)

refactoring
Guillaume Bourgeois 2 年之前
父節點
當前提交
d1ca4bc8c1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      common/models/LoginForm.php

+ 1
- 1
common/models/LoginForm.php 查看文件

@@ -121,7 +121,7 @@ class LoginForm extends Model
public function getUser()
{
if ($this->_user === false) {
$this->_user = User::findByEmail($this->email);
$this->_user = User::findOne(['email' => $this->email, 'type' => User::TYPE_INDIVIDUAL]);
}

return $this->_user;

Loading…
取消
儲存