User registration
2 unresolved threads
2 unresolved threads
Compare changes
Files
6@@ -93,4 +93,32 @@ public class LoginRepository extends GenericRepository<Login, String>{
\ No newline at end of file
Created userService class for registration of new Users.
Why do you try to get the login, if you are setting the password for the first time? If I understand this correctly you are creating a Login, ie registering a user with password. Therefore you will not find a login and nothing will happen.
All of these methods really belong in the LoginService or UserService respectively because a repository only concerns itself with interacting with the database and not with business logic.