mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-18 19:42:49 +08:00
修复删除了用户 还能登录问题
This commit is contained in:
parent
39d76f50b6
commit
db83fc535b
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user