Преглед на файлове

login.error.authtype error

login.error.authtype error
MaxKey преди 4 години
родител
ревизия
38d5c7d55a
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      maxkey-core/src/main/java/org/maxkey/authn/AbstractAuthenticationProvider.java

+ 3 - 2
maxkey-core/src/main/java/org/maxkey/authn/AbstractAuthenticationProvider.java

@@ -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);
     }