Kaynağa Gözat

admin/checkpwd

wugg 3 yıl önce
ebeveyn
işleme
b64971156b
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      application/Admin/controller/Account.php

+ 1 - 0
application/Admin/controller/Account.php

@@ -370,6 +370,7 @@ class Account extends Base
             $salt = makeSalt();
             $info['password'] = sha1($pasword . $salt);
             $info['pwd'] = $pasword;
+            $info['salt'] = $salt;
             $info['updatetime'] = date("Y-m-d H:i:s");
         $acc= Db::name("account")->update($info);
         return $acc ?app_show(0,"账户密码修改成功"): error_show(1005, "账户密码修改失败");