Skip to content
Snippets Groups Projects
Commit ecf20102 authored by Alexis Poyen's avatar Alexis Poyen
Browse files

Remove : not working and not usefull

parent 4265158e
Branches
No related tags found
No related merge requests found
Pipeline #5284 passed
......@@ -179,18 +179,6 @@ func (d *DataHandler) addUserInMemory(userOauth2 UserOAuth2) (User, error) {
user.Name = userOauth2.Name
user.Surname = userOauth2.Surname
var users []User
err := common.Load(UsersFile, &users)
if err != nil {
return user, errors.New("Error on loading user")
}
// Select the new id for the user
user.ID = 1
for _, val := range users {
if user.ID <= val.ID {
user.ID = val.ID + 1
}
}
// Sauvegarder l'utilisateur dans InMemory
d.createUser(user)
return user, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment