Merge pull request #252 from lanyulei/dev

fix: fix bug.
This commit is contained in:
lanyulei 2022-01-17 17:32:54 +08:00 committed by GitHub
commit 7d16d649d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ func Authenticator(c *gin.Context) (interface{}, error) {
return nil, errors.New("获取是否需要验证码校验失败") return nil, errors.New("获取是否需要验证码校验失败")
} }
if isVerifyCode.(bool) { if isVerifyCode != nil && isVerifyCode.(bool) {
// 校验验证码 // 校验验证码
if !store.Verify(loginVal.UUID, loginVal.Code, true) { if !store.Verify(loginVal.UUID, loginVal.Code, true) {
loginLog.Status = "1" loginLog.Status = "1"