This commit is contained in:
cuigh 2018-05-04 14:15:28 +08:00
parent 738c7b8086
commit 5746d9430a

View File

@ -47,6 +47,8 @@ func Validator(setting *model.Setting) func(name, pwd string) (ticket string, er
} }
err = biz.User.Create(mu, nil) err = biz.User.Create(mu, nil)
} }
} else {
err = certify.ErrInvalidToken
} }
// replace user session, one session is allowed per user. // replace user session, one session is allowed per user.