Do not force username to always be lowercase in the DB
This commit is contained in:
@@ -98,6 +98,9 @@ type mockedUserRepo struct {
|
||||
}
|
||||
|
||||
func (u *mockedUserRepo) FindByUsername(username string) (*model.User, error) {
|
||||
if username != "admin" {
|
||||
return nil, model.ErrNotFound
|
||||
}
|
||||
return &model.User{UserName: "admin", Password: "wordpass"}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user