IDEMPIERE-1903 Error save new user if "Password Policies" enabled

This commit is contained in:
Carlos Ruiz 2014-04-16 21:53:57 -05:00
parent a4f0254bc4
commit fc8a941055
1 changed files with 1 additions and 1 deletions

View File

@ -926,7 +926,7 @@ public class MUser extends X_AD_User
}
}
if (newRecord || is_ValueChanged("Password")) {
if (getPassword() != null && getPassword().length() > 0 && (newRecord || is_ValueChanged("Password"))) {
// Validate password policies / IDEMPIERE-221
if (get_ValueOld("Salt") == null && get_Value("Salt") != null) { // being hashed
;