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

OO-1224: password can be null

parent ec8724ae
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ public class UserImportController extends BasicController { ...@@ -171,7 +171,7 @@ public class UserImportController extends BasicController {
newUser.getPreferences().setInformSessionTimeout(true); newUser.getPreferences().setInformSessionTimeout(true);
// Save everything in database // Save everything in database
Identity ident; Identity ident;
if(pwd.startsWith(SHIBBOLETH_MARKER) && ShibbolethModule.isEnableShibbolethLogins()) { if(pwd != null && pwd.startsWith(SHIBBOLETH_MARKER) && ShibbolethModule.isEnableShibbolethLogins()) {
String uniqueID = pwd.substring(SHIBBOLETH_MARKER.length()); String uniqueID = pwd.substring(SHIBBOLETH_MARKER.length());
ident = AuthHelper.createAndPersistIdentityAndUserWithUserGroup(login, ShibbolethDispatcher.PROVIDER_SHIB, uniqueID, newUser); ident = AuthHelper.createAndPersistIdentityAndUserWithUserGroup(login, ShibbolethDispatcher.PROVIDER_SHIB, uniqueID, newUser);
report.incrementCreatedUser(); report.incrementCreatedUser();
......
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