User management improvements (#1101)

* Show more descriptive success messages for User actions

* Check username uniqueness when creating/updating User

* Adjust translations

* Add tests for `validateUsernameUnique()`

Co-authored-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Steve Richter
2021-05-16 13:25:38 -04:00
committed by GitHub
parent 666c006579
commit e60f2bfa3d
8 changed files with 137 additions and 28 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func (db *MockDataStore) Property(context.Context) model.PropertyRepository {
func (db *MockDataStore) User(context.Context) model.UserRepository {
if db.MockedUser == nil {
db.MockedUser = &mockedUserRepo{}
db.MockedUser = CreateMockUserRepo()
}
return db.MockedUser
}