Parcourir la source

User load not by 'email', but by 'email_normal'

Visman il y a 5 ans
Parent
commit
d25497f7ce
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 4
      app/Models/User/Load.php

+ 1 - 4
app/Models/User/Load.php

@@ -25,10 +25,7 @@ class Load extends Action
             if ('' != $value->username) {
                 $where = 'u.username=?s:field';
                 $value = $value->username;
-            } elseif ('' != $value->email) {
-                $where = 'u.email=?s:field';
-                $value = $value->email;
-            } elseif ('' != $value->email_normal) {
+            } elseif ('' != $value->email && '' != $value->email_normal) {
                 $where = 'u.email_normal=?s:field';
                 $value = $value->email_normal;
             } else {