IDEMPIERE-347 passwords hash / found that Remember Me is incompatible with hash password with actual implementation
This commit is contained in:
parent
ec0af3b0fb
commit
4a2a4af7c8
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue