File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ function authenticate(context) {
2424 /*
2525 All other clients will authorize if the user account is not disabled or locked
2626 */
27- if ( user . getFirstAttribute ( "nsAccountLock" ) == "TRUE" || user . getFirstAttribute ( "loginDisabled" ) == "TRUE" ) {
27+ if ( user . getFirstAttribute ( "nsAccountLock" ) == "TRUE" ) {
28+ context . failure ( AuthenticationFlowError . CREDENTIAL_SETUP_REQUIRED ) ;
29+ return ;
30+ } else if ( user . getFirstAttribute ( "loginDisabled" ) == "TRUE" ) {
2831 context . failure ( AuthenticationFlowError . USER_DISABLED ) ;
2932 return ;
3033 }
Original file line number Diff line number Diff line change 66
77 <groupId >edu.osc</groupId >
88 <artifactId >osc-keycloak-scripts</artifactId >
9- <version >1.4.1 </version >
9+ <version >1.4.2 </version >
1010 <packaging >jar</packaging >
1111
1212 <properties >
You can’t perform that action at this time.
0 commit comments