From 291bf19153dbf8e8d03ed39c0a49584ee80b09df Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 19 Nov 2019 10:02:05 +0800 Subject: [PATCH] Update User.php --- app/admin/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/controller/User.php b/app/admin/controller/User.php index fd006f457..04bdca8ac 100644 --- a/app/admin/controller/User.php +++ b/app/admin/controller/User.php @@ -91,7 +91,7 @@ class User extends Controller if ($post['password'] !== $post['repassword']) { $this->error('两次输入的密码不一致!'); } - if (DataExtend::save($this->table, ['id' => $post['id'], 'password' => md5($post['password'])], 'id')) { + if (data_save($this->table, ['id' => $post['id'], 'password' => md5($post['password'])], 'id')) { $this->success('密码修改成功,下次请使用新密码登录!', ''); } else { $this->error('密码修改失败,请稍候再试!');