feat: 新增认证处理器,包含用户注册、登录、刷新令牌、密码更新以及GitHub和Gitee OAuth功能。
This commit is contained in:
@@ -122,7 +122,7 @@ func (h *AuthHandler) GetCurrentUser(c *gin.Context) {
|
||||
}
|
||||
|
||||
type UpdatePasswordRequest struct {
|
||||
OldPassword string `json:"old_password" binding:"required"`
|
||||
OldPassword string `json:"old_password"`
|
||||
NewPassword string `json:"new_password" binding:"required,min=8"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user