Added new Constructro to logn model and started using the new constructor in UserService
- Mar 30, 2020
-
-
Mads Lundegaard authored8da1fad2
-
Previously when creating a User we set the password and hash as blank as we had to have a user since the ID og login is the username. I created a new constructor which only takes a User as input. I feel like this is a safer way of doing it.