Browse Source

Merge branch 'dev'

prodstable
Guillaume Bourgeois 2 years ago
parent
commit
1ffe49a8a0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/LoginForm.php

+ 1
- 1
common/models/LoginForm.php View File

public function getUser() public function getUser()
{ {
if ($this->_user === false) { if ($this->_user === false) {
$this->_user = User::findByEmail($this->email);
$this->_user = User::findOne(['email' => $this->email, 'type' => User::TYPE_INDIVIDUAL]);
} }


return $this->_user; return $this->_user;

Loading…
Cancel
Save