|
|
|
@ -289,7 +289,6 @@ func authorizePost(context *gin.Context) {
|
|
|
|
|
var identityId string
|
|
|
|
|
var personId string
|
|
|
|
|
var success bool
|
|
|
|
|
var message string
|
|
|
|
|
var remainCount int
|
|
|
|
|
//1、验证码
|
|
|
|
|
captchaId := context.PostForm("captchaId")
|
|
|
|
@ -461,3 +460,20 @@ func logout(context *gin.Context) {
|
|
|
|
|
context.Redirect(302, globalValue)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @Summary 重置错误重试次数限制
|
|
|
|
|
// @Description 重置错误重试次数限制
|
|
|
|
|
// @Tags 登录验证类
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param userName query string true "登录用的用户名"
|
|
|
|
|
// @Success 200 {string} string
|
|
|
|
|
// @Router /oauth2/resetRemainCount [get]
|
|
|
|
|
// @X-EmptyLimit ["userName"]
|
|
|
|
|
func resetRemainCount(context *gin.Context) {
|
|
|
|
|
userName := context.Query("userName")
|
|
|
|
|
RedisUtil.DEL(Const.RemainCountRedisPrefix + userName)
|
|
|
|
|
msg := "成功清除禁用标识!"
|
|
|
|
|
context.JSON(http.StatusOK, map[string]interface{}{"success": true, "msg": msg})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|