Init sql miss is_verify_code in table sys_settings, fix auth problem.
This commit is contained in:
parent
7402c1374d
commit
52d17fff56
@ -99,7 +99,7 @@ func Authenticator(c *gin.Context) (interface{}, error) {
|
||||
return nil, errors.New("获取是否需要验证码校验失败")
|
||||
}
|
||||
|
||||
if isVerifyCode.(bool) {
|
||||
if isVerifyCode != nil && isVerifyCode.(bool) {
|
||||
// 校验验证码
|
||||
if !store.Verify(loginVal.UUID, loginVal.Code, true) {
|
||||
loginLog.Status = "1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user