From db83fc535b1c748b375d3c0c105c47777fa6cca8 Mon Sep 17 00:00:00 2001 From: zegezy <1098696801@qq.com> Date: Thu, 29 Jun 2023 20:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E7=94=A8=E6=88=B7=20=E8=BF=98=E8=83=BD=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/magic-api/api/系统管理/安全/登录.ms | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/magic-api/api/系统管理/安全/登录.ms b/data/magic-api/api/系统管理/安全/登录.ms index 70d786b..325fc34 100644 --- a/data/magic-api/api/系统管理/安全/登录.ms +++ b/data/magic-api/api/系统管理/安全/登录.ms @@ -5,7 +5,7 @@ "groupId" : "1952f25c81084e24b55b11385767dc38", "name" : "登录", "createTime" : null, - "updateTime" : 1656424297619, + "updateTime" : 1688041637780, "lock" : "0", "createBy" : null, "updateBy" : null, @@ -67,7 +67,7 @@ "responseBody" : "{\n \"code\": 0,\n \"message\": \"用户名或密码错误\",\n \"data\": null,\n \"timestamp\": 1656424276533,\n \"executeTime\": 11\n}", "description" : null, "requestBodyDefinition" : { - "name" : "", + "name" : "root", "value" : "", "description" : "", "required" : false, @@ -176,8 +176,8 @@ "children" : [ ] } ] } -} -================================ +} +================================ import org.ssssssss.magicboot.utils.AddressUtil import log import 'cn.dev33.satoken.stp.StpUtil'; @@ -199,9 +199,9 @@ if(configure('verification-code.enable') == 'true'){ var user if(SaSecureUtil.sha256(configure('super-password')) == body.password){ - user = db.table("sys_user").where().eq("username",body.username).selectOne() + user = db.table("sys_user").where().eq("username",body.username).eq('is_del', 0).selectOne() }else{ - user = db.table("sys_user").where().eq("username",body.username).eq("password", body.password).selectOne() + user = db.table("sys_user").where().eq("username",body.username).eq("password", body.password).eq('is_del', 0).selectOne() } var loginLog = {