app/models/Data/User.php: in findFirstByOAuthID() also only fetch rows where status != deleted
This commit is contained in:
parent
0bf7c54539
commit
9bd0ef86fc
1 changed files with 2 additions and 2 deletions
|
|
@ -385,8 +385,8 @@ class User extends Model
|
|||
$column = strtolower($oauth->getProvider());
|
||||
|
||||
return self::findFirst([
|
||||
"{$column}_id = :id:",
|
||||
"bind" => [ 'id' => $oauth->getId() ]
|
||||
"{$column}_id = :id: AND status != :s:",
|
||||
"bind" => [ 'id' => $oauth->getId(), 's' => self::STATUS_DELETED ]
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue