Users: Enable case insensitive login by default (#66134)
* enable case insensitive by default * fix missing case-insensitive query * fix missing case insensitive query * fix missing case insensitive query in temp_user * skip integration testing in mysql * skip integration testing in mysql * use t.cleanup * lowercase only once * aligned to only using sql as that is what we do in other parts --------- Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"github.com/grafana/grafana/pkg/infra/db"
|
||||
tempuser "github.com/grafana/grafana/pkg/services/temp_user"
|
||||
"github.com/grafana/grafana/pkg/setting"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
@@ -13,9 +14,10 @@ type Service struct {
|
||||
|
||||
func ProvideService(
|
||||
db db.DB,
|
||||
cfg *setting.Cfg,
|
||||
) tempuser.Service {
|
||||
return &Service{
|
||||
store: &xormStore{db: db},
|
||||
store: &xormStore{db: db, cfg: cfg},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user