Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit a5b7ee9

Browse files
authored
Merge pull request cosmocode#87 from lindyblackburn/master
correct check for duplicate email
2 parents 9f878ef + 11997ac commit a5b7ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public function modifyUser($user, $changes) {
401401

402402
if(isset($changes['mail'])) {
403403
$found = $this->getUserByEmail($changes['mail']);
404-
if($found != $user) {
404+
if($found && $found != $user) {
405405
msg($this->getLang('emailduplicate'), -1);
406406
return false;
407407
}

0 commit comments

Comments
 (0)