This commit is contained in:
laodaming
2023-08-31 11:04:27 +08:00
parent a94aab855a
commit e2d6182f62
13 changed files with 124 additions and 38 deletions

View File

@@ -82,7 +82,7 @@ func ParseJwtToken(r *http.Request, svcCtx any) (*auth.UserInfo, error) {
if err != nil {
// logx.Println("error", info)
logx.Error(err, ":", info)
return nil, err
return nil, errors.New("user not found:" + err.Error())
}
secret = us.PwdHash // 获取密码的hash做jwt, 便于重置密码的使用