login.error.authtype error

login.error.authtype error
上级 e2a53d4a
......@@ -165,7 +165,6 @@ public abstract class AbstractAuthenticationProvider {
}
protected void authTypeValid(String authType) {
final String message = WebContext.getI18nValue("login.error.authtype");
_logger.debug("Login AuthN Type " + authType);
if (authType != null && (
authType.equalsIgnoreCase("basic")
......@@ -173,7 +172,9 @@ public abstract class AbstractAuthenticationProvider {
) {
return;
}
_logger.debug("Login AuthN type must eq basic or tfa .");
final String message = WebContext.getI18nValue("login.error.authtype");
_logger.debug("Login AuthN type must eq basic or tfa , Error message is " + message);
throw new BadCredentialsException(message);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册