Commit ecf20102 authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Remove : not working and not usefull

parent 4265158e
Pipeline #5284 passed with stages
in 3 minutes and 26 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment