app/models/Data/User.php: in findFirstByEmail() only fetch rows with Status != deleted.
This commit is contained in:
parent
ec5c6f2d14
commit
aced9f8bf3
1 changed files with 2 additions and 2 deletions
|
|
@ -361,8 +361,8 @@ class User extends Model
|
|||
static public function findFirstByEmail($email)
|
||||
{
|
||||
return self::findFirst([
|
||||
"email = :email: AND status = :s:",
|
||||
"bind" => [ 'email' => $email, 's' => self::STATUS_ACTIVE ]
|
||||
"email = :email: AND status != :s:",
|
||||
"bind" => [ 'email' => $email, 's' => self::STATUS_DELETED ]
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue