From f097119c76a661523e8294723dbbabc3161973cb Mon Sep 17 00:00:00 2001 From: walkor Date: Fri, 9 Dec 2022 11:39:44 +0800 Subject: [PATCH] save --- src/plugin/admin/app/controller/AccountController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugin/admin/app/controller/AccountController.php b/src/plugin/admin/app/controller/AccountController.php index 4df3ccb..edd86ae 100644 --- a/src/plugin/admin/app/controller/AccountController.php +++ b/src/plugin/admin/app/controller/AccountController.php @@ -166,6 +166,9 @@ class AccountController extends Crud if (!$password) { return $this->json(2, '密码不能为空'); } + if ($request->post('password_confirm') !== $password) { + return $this->json(3, '两次密码输入不一致'); + } if (!Util::passwordVerify($request->post('old_password'), $hash)) { return $this->json(1, '原始密码不正确'); }