Skip to content

Commit 570346c

Browse files
committed
Put lowercased email for email login - #19
1 parent 9013807 commit 570346c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/api/v2/auth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ auth.post('/sendmail', async ctx => {
4848
// create email
4949
const emailAuth = new EmailAuth();
5050
emailAuth.code = shortid.generate();
51-
emailAuth.email = email;
51+
emailAuth.email = email.toLowerCase();
5252
await getRepository(EmailAuth).save(emailAuth);
5353
const emailTemplate = createAuthEmail(!!user, emailAuth.code);
5454

0 commit comments

Comments
 (0)