app/models/Data/User.php: in findFirstByUsernameOrEmail() only select active users.
This commit is contained in:
parent
0e7849e5f7
commit
ecf38258f5
1 changed files with 2 additions and 2 deletions
|
|
@ -281,8 +281,8 @@ class User extends Model
|
|||
static public function findFirstByUsernameOrEmail($value)
|
||||
{
|
||||
return self::findFirst([
|
||||
"email = :v: OR username = :v:",
|
||||
"bind" => [ 'v' => $value ]
|
||||
"(email = :v: OR username = :v:) AND status = :s:",
|
||||
"bind" => [ 'v' => $value, 's' => self::STATUS_ACTIVE ]
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue