mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-24 23:17:56 +01:00
Chores: remove duplicated code
This commit is contained in:
parent
1f99ce3889
commit
f16762636b
@ -103,9 +103,7 @@ public class UserManagerImpl
|
||||
|
||||
@Override
|
||||
public User createUser(@NotNull User user, @NotNull Collaborator collaborator) {
|
||||
user.setPassword(passwordEncoder.encode(user.getPassword()));
|
||||
assert user != null : "Trying to store a null user";
|
||||
getHibernateTemplate().saveOrUpdate(user);
|
||||
this.createUser(user);
|
||||
|
||||
// Migrate from previous temporal collab to new user ...
|
||||
final Set<Collaboration> collaborations = collaborator.getCollaborations();
|
||||
|
Loading…
Reference in New Issue
Block a user