贾小兵 3 mesi fa
parent
commit
7ba3aa566e
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      application/admin/controller/general/Profile.php

+ 4 - 4
application/admin/controller/general/Profile.php

@@ -65,10 +65,10 @@ class Profile extends Backend
                 $params['salt'] = Random::alnum();
                 $params['password'] = md5(md5($params['password']) . $params['salt']);
             }
-            $exist = Admin::where('email', $params['email'])->where('id', '<>', $this->auth->id)->find();
-            if ($exist) {
-                $this->error(__("Email already exists"));
-            }
+//            $exist = Admin::where('email', $params['email'])->where('id', '<>', $this->auth->id)->find();
+//            if ($exist) {
+//                $this->error(__("Email already exists"));
+//            }
             if ($params) {
                 $admin = Admin::get($this->auth->id);
                 $admin->save($params);