mirror of
https://gitee.com/shikong-sk/gofiber-study
synced 2025-05-10 12:08:24 +08:00
调整
This commit is contained in:
parent
48a6d4d32e
commit
0755485d84
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
AuthFailed = errors.New("账号或密码错误")
|
||||
Failed = errors.New("账号或密码错误")
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
@ -29,7 +29,7 @@ func (s *Service) Login(login *dto.Login) (token string, err error) {
|
||||
}
|
||||
|
||||
if !exist {
|
||||
return token, AuthFailed
|
||||
return token, Failed
|
||||
}
|
||||
|
||||
token, err = global.GetToken(global.UserClaims{
|
||||
|
Loading…
Reference in New Issue
Block a user