Sfoglia il codice sorgente

Correctif connexion (filtre sur type individual)

refactoring
Guillaume Bourgeois 2 anni fa
parent
commit
d1ca4bc8c1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      common/models/LoginForm.php

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

@@ -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…
Annulla
Salva