Do not force username to always be lowercase in the DB

This commit is contained in:
Deluan
2020-09-01 18:00:19 -04:00
parent 95eea0e9f8
commit 596a4897a3
5 changed files with 9 additions and 8 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ package request
import (
"context"
"strings"
"github.com/deluan/navidrome/model"
)
@@ -23,7 +22,7 @@ func WithUser(ctx context.Context, u model.User) context.Context {
}
func WithUsername(ctx context.Context, username string) context.Context {
return context.WithValue(ctx, Username, strings.ToLower(username))
return context.WithValue(ctx, Username, username)
}
func WithClient(ctx context.Context, client string) context.Context {