取消挂起判断

This commit is contained in:
TsMask
2023-08-17 11:34:40 +08:00
parent 3985b37946
commit 7083f0fe13

View File

@@ -728,7 +728,11 @@ func XormCheckLoginUser(name, password, cryptArgo string) (bool, *User, error) {
case "Locked":
errMsg = "账户已锁定"
case "Pending":
errMsg = "账户已挂起"
// errMsg = "账户已挂起"
_, err := xEngine.Exec("UPDATE user SET status = 'Active' WHERE account_id = ?", user.AccountId)
if err != nil {
return false, nil, err
}
}
if errMsg != "" {
log.Error("user Status:%s", errMsg)