use of com.evolveum.midpoint.web.page.forgetpassword.ResetPolicyDto in project midpoint by Evolveum.
the class PageAuthenticationBase method initResetCredentialsConfiguration.
private void initResetCredentialsConfiguration() {
// TODO: cleanup, the same as in the PageRegistrationBase
SecurityPolicyType securityPolicy = resolveSecurityPolicy();
this.resetPasswordPolicy = new ResetPolicyDto();
try {
this.resetPasswordPolicy.initResetPolicyDto(securityPolicy);
} catch (SchemaException e) {
LOGGER.error("Failed to initialize self registration configuration.", e);
getSession().error(createStringResource("PageSelfRegistration.selfRegistration.configuration.init.failed").getString());
throw new RestartResponseException(PageLogin.class);
}
}
use of com.evolveum.midpoint.web.page.forgetpassword.ResetPolicyDto in project midpoint by Evolveum.
the class PageRegistrationBase method initResetCredentialsConfiguration.
private void initResetCredentialsConfiguration() {
SecurityPolicyType securityPolicy = resolveSecurityPolicy();
this.resetPasswordPolicy = new ResetPolicyDto();
try {
this.resetPasswordPolicy.initResetPolicyDto(securityPolicy);
} catch (SchemaException e) {
LOGGER.error("Failed to initialize self registration configuration.", e);
getSession().error(createStringResource("PageSelfRegistration.selfRegistration.configuration.init.failed").getString());
throw new RestartResponseException(PageLogin.class);
}
}
Aggregations