We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
最新版本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的地方,不过没看出来具体是什么原因。
The text was updated successfully, but these errors were encountered:
测试了3.3.2,3.3.1都一样,目前没看出来哪里不对。
另外还有一个奇怪现象,重启apserver后,再刷新下页面,login页面变404,只能清空数据库后再重启后,页面又恢复正常到login。
Sorry, something went wrong.
No branches or pull requests
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
}
`
数据库查了下,最后登录时间是有的,那应该问题出在编码JWT的地方,不过没看出来具体是什么原因。
Environment
The text was updated successfully, but these errors were encountered: