|
|
|
@ -324,8 +324,8 @@ func authorizePost(context *gin.Context) {
|
|
|
|
|
ip := context.ClientIP()
|
|
|
|
|
success, identityId, personId, _, remainCount = ServiceLoginPerson.Login(username, string(decryptPwd), ip)
|
|
|
|
|
if !success {
|
|
|
|
|
//三次以上不提示
|
|
|
|
|
if remainCount >= 3 {
|
|
|
|
|
//两次输入错误,不提醒
|
|
|
|
|
if remainCount >= 4 {
|
|
|
|
|
context.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Code: http.StatusNotImplemented,
|
|
|
|
|
Msg: "用户名密码不正确或已禁用!",
|
|
|
|
|