Skip to content
Snippets Groups Projects
Commit 62b0cb9f authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

user flow is ok

parent 1f0ebd42
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import net.jami.jams.common.authentication.AuthenticationSourceType;
import net.jami.jams.common.dao.StatementElement;
import net.jami.jams.common.dao.StatementList;
import net.jami.jams.common.objects.user.User;
import net.jami.jams.server.core.workflows.RegisterUserFlow;
import net.jami.jams.server.startup.LibraryLoader;
import java.util.HashMap;
......@@ -71,9 +72,7 @@ public class UserAuthenticationModule {
user.setRealm(key.getRealm());
user.setUserType(key.getType());
if(key.getType().equals(AuthenticationSourceType.LOCAL)) user.setPassword(password);
//TODO: We need a function here which generates the user (obvious workflow).
//The user never existed, obviously.
dataStore.getUserDao().storeObject(user);
dataStore.getUserDao().storeObject(RegisterUserFlow.createUser(user));
return true;
}
}
......
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