v1.1 登录密码错误还剩多少次机会tip

This commit is contained in:
2022-10-20 15:18:16 +08:00
parent aaa016f6a0
commit 9ba3b352db

View File

@@ -155,7 +155,7 @@ public class PasswordAuthenticationProvider implements AuthenticationProvider{
throw new CustomOAuth2Exception(CustomOAuth2Exception.PWD_WRONG_OVER_LIMIT, OAuthStatus.PWD_WRONG_OVER_LIMIT.getReasonPhrase());
} else {
Long remainCount = maxCount - currCount;
throw new CustomOAuth2Exception(CustomOAuth2Exception.PASSWORD_ERROR, String.format("码错误,还剩%d次机会", remainCount));
throw new CustomOAuth2Exception(CustomOAuth2Exception.PASSWORD_ERROR, String.format("碼錯誤,還剩%d次機會", remainCount));
}
}
}