Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
b1099d44
Commit
b1099d44
authored
10 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
no-jira: fix after changes to wizard
parent
a7393328
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/ldap/ui/LDAPAuthenticationController.java
+4
-1
4 additions, 1 deletion
...n/java/org/olat/ldap/ui/LDAPAuthenticationController.java
src/main/java/org/olat/login/OLATAuthenticationController.java
+3
-1
3 additions, 1 deletion
...ain/java/org/olat/login/OLATAuthenticationController.java
with
7 additions
and
2 deletions
src/main/java/org/olat/ldap/ui/LDAPAuthenticationController.java
+
4
−
1
View file @
b1099d44
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/login/OLATAuthenticationController.java
+
3
−
1
View file @
b1099d44
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment