v1.1 登录密码错误还剩多少次机会tip
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user