IDEMPIERE-347 passwords hash / found that Remember Me is incompatible with hash password with actual implementation

This commit is contained in:
Carlos Ruiz 2012-08-01 17:41:48 -05:00
parent ec0af3b0fb
commit 4a2a4af7c8
1 changed files with 2 additions and 2 deletions

View File

@ -480,7 +480,7 @@ public class MSystem extends X_AD_System
public static boolean isZKRememberPasswordAllowed() { public static boolean isZKRememberPasswordAllowed() {
String ca = MSysConfig.getValue("ZK_LOGIN_ALLOW_REMEMBER_ME", SYSTEM_ALLOW_REMEMBER_USER); String ca = MSysConfig.getValue("ZK_LOGIN_ALLOW_REMEMBER_ME", SYSTEM_ALLOW_REMEMBER_USER);
return (ca.equalsIgnoreCase(SYSTEM_ALLOW_REMEMBER_PASSWORD)); return (ca.equalsIgnoreCase(SYSTEM_ALLOW_REMEMBER_PASSWORD) && !MSysConfig.getBooleanValue("USER_PASSWORD_HASH", false));
} }
public static boolean isSwingRememberUserAllowed() { public static boolean isSwingRememberUserAllowed() {
@ -490,7 +490,7 @@ public class MSystem extends X_AD_System
public static boolean isSwingRememberPasswordAllowed() { public static boolean isSwingRememberPasswordAllowed() {
String ca = MSysConfig.getValue("SWING_LOGIN_ALLOW_REMEMBER_ME", SYSTEM_ALLOW_REMEMBER_PASSWORD); String ca = MSysConfig.getValue("SWING_LOGIN_ALLOW_REMEMBER_ME", SYSTEM_ALLOW_REMEMBER_PASSWORD);
return (ca.equalsIgnoreCase(SYSTEM_ALLOW_REMEMBER_PASSWORD)); return (ca.equalsIgnoreCase(SYSTEM_ALLOW_REMEMBER_PASSWORD) && !MSysConfig.getBooleanValue("USER_PASSWORD_HASH", false));
} }
/** /**