Skip to content

Commit

Permalink
Automatically lowercase email as server side auth apis are case sensi…
Browse files Browse the repository at this point in the history
…tive for username/email.
  • Loading branch information
Levi Sky authored and galxy25 committed Oct 23, 2020
1 parent bf4a2f5 commit 2421654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ func (c *ToznySDKV3) Login(ctx context.Context, email string, password string, s
apiHost = apiEndpoint
}
body := map[string]string{}
body["email"] = email
body["email"] = strings.ToLower(email)
path := apiHost + "/v1/account/challenge"
request, err := e3dbClients.CreateRequest("POST", path, body)
if err != nil {
Expand Down

0 comments on commit 2421654

Please sign in to comment.