From 209c315a7661b01235f1b996b8d0c4769189d0b9 Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Thu, 13 Oct 2022 11:08:28 +0200 Subject: [PATCH] Other: Remove double case squash --- internal/user/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/user/user.go b/internal/user/user.go index 615fa7b8..5618055a 100644 --- a/internal/user/user.go +++ b/internal/user/user.go @@ -375,7 +375,7 @@ func (user *User) checkAuth(email string, password []byte) (string, error) { return safe.MapValuesRetErr(user.apiAddrs, func(apiAddrs []liteapi.Address) (string, error) { for _, addr := range apiAddrs { - if strings.EqualFold(addr.Email, strings.ToLower(email)) { + if strings.EqualFold(addr.Email, email) { return addr.ID, nil } }