mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 08:38:50 +01:00
Do not force username to always be lowercase in the DB
This commit is contained in:
parent
95eea0e9f8
commit
596a4897a3
5 changed files with 9 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue