Convert username to lowercase
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Lauri Võsandi 2023-01-10 14:45:15 +02:00
parent 54c9e8231f
commit 87b7c7270d
2 changed files with 3 additions and 1 deletions

2
.drone.yml Normal file
View File

@ -0,0 +1,2 @@
kind: template
load: docker.yaml

View File

@ -270,7 +270,7 @@ func (c *githubConnector) HandleCallback(s connector.Scopes, r *http.Request) (i
identity = connector.Identity{ identity = connector.Identity{
UserID: strconv.Itoa(user.ID), UserID: strconv.Itoa(user.ID),
Username: username, Username: username,
PreferredUsername: user.Login, PreferredUsername: strings.ToLower(user.Login),
Email: user.Email, Email: user.Email,
EmailVerified: true, EmailVerified: true,
} }