-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Description
最新版本3.3.3部署后无法登录,
部署了apinto,也部署apserver3.3.3;启动后看到login界面。输入用户名admin密码12345678,提示登录失败。
初步判断出错的地方应该是:
`
now := time.Now()
// 成功登录,更新登录时间
err = u.userInfo.UpdateLastLoginTime(ginCtx, id, &now)
if err != nil {
controller.ErrorJson(ginCtx, http.StatusOK, "登录失败")
return
}
userJWT, err := common.JWTEncode(&controller.UserClaim{
Id: id,
Uname: loginInfo.Username,
LoginTime: now.Format("2006-01-02 15:04:05"),
}, jwtSecret)
if err != nil {
controller.ErrorJson(ginCtx, http.StatusOK, "登录失败")
return
}
`
数据库查了下,最后登录时间是有的,那应该问题出在编码JWT的地方,不过没看出来具体是什么原因。
Environment
- APINTO Dashboard version (3.3.3):
- Operating system (centos 8):
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels