In api/users/update it's currently possible to update the scm account of the user with the same account value multiple time. Multiple occurrence of the same value is not correctly handled and saved multiple time, preventing later from deleting that scm account.
Example of body that should ignore the second occurrence of the scm :
I also noticed that deleting all scm account for a user doesn't work, there is always at least one remaining that it's not possible to remove.
- ignore duplicate SCM accounts
- order by alphabetical order, case insensitive
- delete all scm accounts should work