Skip to content
Snippets Groups Projects
Commit b1099d44 authored by srosse's avatar srosse
Browse files

no-jira: fix after changes to wizard

parent a7393328
No related branches found
No related tags found
No related merge requests found
...@@ -44,6 +44,7 @@ import org.olat.core.id.Identity; ...@@ -44,6 +44,7 @@ import org.olat.core.id.Identity;
import org.olat.core.id.context.ContextEntry; import org.olat.core.id.context.ContextEntry;
import org.olat.core.id.context.StateEntry; import org.olat.core.id.context.StateEntry;
import org.olat.core.logging.OLATRuntimeException; import org.olat.core.logging.OLATRuntimeException;
import org.olat.core.logging.OLATSecurityException;
import org.olat.core.util.StringHelper; import org.olat.core.util.StringHelper;
import org.olat.core.util.UserSession; import org.olat.core.util.UserSession;
import org.olat.core.util.Util; import org.olat.core.util.Util;
...@@ -113,7 +114,9 @@ public class LDAPAuthenticationController extends AuthenticationController imple ...@@ -113,7 +114,9 @@ public class LDAPAuthenticationController extends AuthenticationController imple
protected void openChangePassword(UserRequest ureq, String initialEmail) { protected void openChangePassword(UserRequest ureq, String initialEmail) {
// double-check if allowed first // double-check if allowed first
if (!UserModule.isPwdchangeallowed(ureq.getIdentity()) || !LDAPLoginModule.isPropagatePasswordChangedOnLdapServer()) if (!UserModule.isPwdchangeallowed(ureq.getIdentity()) || !LDAPLoginModule.isPropagatePasswordChangedOnLdapServer()) {
throw new OLATSecurityException("chose password to be changed, but disallowed by config");
}
removeAsListenerAndDispose(cmc); removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(subController); removeAsListenerAndDispose(subController);
......
...@@ -151,7 +151,9 @@ public class OLATAuthenticationController extends AuthenticationController imple ...@@ -151,7 +151,9 @@ public class OLATAuthenticationController extends AuthenticationController imple
protected void openChangePassword(UserRequest ureq, String initialEmail) { protected void openChangePassword(UserRequest ureq, String initialEmail) {
// double-check if allowed first // double-check if allowed first
if (!UserModule.isPwdchangeallowed(ureq.getIdentity())) throw new OLATSecurityException("chose password to be changed, but disallowed by config"); if (!UserModule.isPwdchangeallowed(ureq.getIdentity())) {
throw new OLATSecurityException("chose password to be changed, but disallowed by config");
}
removeAsListenerAndDispose(cmc); removeAsListenerAndDispose(cmc);
removeAsListenerAndDispose(subController); removeAsListenerAndDispose(subController);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment