Skip to content
Snippets Groups Projects
Commit a2991fe5 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Set AuthProvider on user creation

parent 51684b05
No related merge requests found
...@@ -387,6 +387,7 @@ public class UserServiceImpl implements UserService { ...@@ -387,6 +387,7 @@ public class UserServiceImpl implements UserService {
UserProfile userProfile = new UserProfile(); UserProfile userProfile = new UserProfile();
UserProfile.Account account = new UserProfile.Account(); UserProfile.Account account = new UserProfile.Account();
userProfile.setAccount(account); userProfile.setAccount(account);
userProfile.setAuthProvider(UserProfile.AuthProvider.ARSNOVA);
userProfile.setLoginId(lcUsername); userProfile.setLoginId(lcUsername);
account.setPassword(encodePassword(password)); account.setPassword(encodePassword(password));
account.setActivationKey(RandomStringUtils.randomAlphanumeric(32)); account.setActivationKey(RandomStringUtils.randomAlphanumeric(32));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment