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