From 642b74edfc58b97e6993aa6467bb21075a767ef8 Mon Sep 17 00:00:00 2001 From: Argo Zhang <5196060@qq.com> Date: Tue, 5 Mar 2019 14:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E5=AF=86=E7=A0=81=E5=BC=B9=E5=87=BA=E6=A1=86?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=87=8D=E7=BD=AE=E5=8E=9F=E5=9B=A0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20#IS7V2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Api/RegisterController.cs | 2 +- .../Controllers/Api/UsersController.cs | 3 +++ Bootstrap.Admin/Views/Account/Login.cshtml | 4 ++-- Bootstrap.Admin/Views/Admin/Users.cshtml | 6 +++++- Bootstrap.Admin/wwwroot/js/users.js | 13 ++++++++++++- Bootstrap.DataAccess/Helper/UserHelper.cs | 7 +++++++ Bootstrap.DataAccess/ResetUsers.cs | 9 +++++++++ UnitTest/Bootstrap.Admin/Api/UsersTest.cs | 3 +++ UnitTest/Bootstrap.DataAccess/ResetUserTest.cs | 17 +++++++++++++++++ 9 files changed, 59 insertions(+), 5 deletions(-) diff --git a/Bootstrap.Admin/Controllers/Api/RegisterController.cs b/Bootstrap.Admin/Controllers/Api/RegisterController.cs index 156ea7a3..1ff40ca5 100644 --- a/Bootstrap.Admin/Controllers/Api/RegisterController.cs +++ b/Bootstrap.Admin/Controllers/Api/RegisterController.cs @@ -45,7 +45,7 @@ namespace Bootstrap.Admin.Controllers.Api } /// - /// + /// 重置密码调用 /// /// /// diff --git a/Bootstrap.Admin/Controllers/Api/UsersController.cs b/Bootstrap.Admin/Controllers/Api/UsersController.cs index 431dc87c..4f3121fc 100644 --- a/Bootstrap.Admin/Controllers/Api/UsersController.cs +++ b/Bootstrap.Admin/Controllers/Api/UsersController.cs @@ -75,6 +75,9 @@ namespace Bootstrap.Admin.Controllers.Api case "group": ret = UserHelper.RetrievesByGroupId(id); break; + case "reset": + ret = UserHelper.RetrieveResetReasonsByUserName(id).Select(u => new { u.Key, u.Value }); + break; } return ret; } diff --git a/Bootstrap.Admin/Views/Account/Login.cshtml b/Bootstrap.Admin/Views/Account/Login.cshtml index 03b2b5d0..89db252c 100644 --- a/Bootstrap.Admin/Views/Account/Login.cshtml +++ b/Bootstrap.Admin/Views/Account/Login.cshtml @@ -162,7 +162,7 @@ - +
@@ -178,7 +178,7 @@
- +