FINERACT-2003: Enforce password reset on first login
:wq
This commit is contained in:
+1
@@ -81,6 +81,7 @@ public final class GlobalConfigurationConstants {
|
||||
public static final String ALLOWED_LOAN_STATUSES_OF_DELAYED_SETTLEMENT_FOR_EXTERNAL_ASSET_TRANSFER = "allowed-loan-statuses-of-delayed-settlement-for-external-asset-transfer";
|
||||
public static final String ENABLE_ORIGINATOR_CREATION_DURING_LOAN_APPLICATION = "enable-originator-creation-during-loan-application";
|
||||
public static final String PASSWORD_REUSE_CHECK_HISTORY_COUNT = "password-reuse-check-history-count";
|
||||
public static final String FORCE_PASSWORD_RESET_ON_FIRST_LOGIN = "force-password-reset-on-first-login";
|
||||
|
||||
private GlobalConfigurationConstants() {}
|
||||
}
|
||||
|
||||
+2
@@ -153,4 +153,6 @@ public interface ConfigurationDomainService {
|
||||
String getAssetOwnerTransferOustandingInterestStrategy();
|
||||
|
||||
Integer getPasswordReuseRestrictionCount();
|
||||
|
||||
boolean isForcePasswordResetOnFirstLoginEnabled();
|
||||
}
|
||||
|
||||
+11
@@ -131,6 +131,17 @@ public class AppUser extends AbstractPersistableCustom<Long> implements Platform
|
||||
@Column(name = "cannot_change_password", nullable = true)
|
||||
private Boolean cannotChangePassword;
|
||||
|
||||
@Column(name = "password_reset_required", nullable = false)
|
||||
private boolean passwordResetRequired;
|
||||
|
||||
public boolean isPasswordResetRequired() {
|
||||
return this.passwordResetRequired;
|
||||
}
|
||||
|
||||
public void updatePasswordResetRequired(final boolean required) {
|
||||
this.passwordResetRequired = required;
|
||||
}
|
||||
|
||||
public static AppUser fromJson(final Office userOffice, final Staff linkedStaff, final Set<Role> allRoles,
|
||||
final Collection<Client> clients, final JsonCommand command) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user