Skip to content

help request: 最新版本3.3.3部署后无法登录 #37

Description

@crackso

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions