0x0ece / yopa-native

0 stars 2 forks source link

Manage add existing service #26

Closed 0x0ece closed 6 years ago

0x0ece commented 6 years ago

Currently, if a user adds a service + username that exists already... the behavior is unclear.

I think we should show an error message, like "Service and username already existing".

In principle we could replace the existing one, but that would create mess because if the group changes, the secret also changes. So I think that guarding against add is the easiest solution.

We should also add tests.