Skip to content

Commit 0f6c005

Browse files
committed
Keep email lower case
1 parent 7c29a7a commit 0f6c005

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/app/api/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646

4747
async verifyEmail(email: string) {
4848
try {
49-
const response = await axios.post(`${API_BASE_URL}/verify_email`, { email });
49+
const response = await axios.post(`${API_BASE_URL}/verify_email`, { email: email.toLowerCase() });
5050
return response.data;
5151
} catch (error) {
5252
toast({

web/src/components/common/Auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ const Auth = () => {
342342
aria-label="Enter work email ID"
343343
value={email}
344344
disabled={isEmbedded ? true : isOTPMode ? true : false}
345-
onChange={(e) => setEmail(e.target.value)}
345+
onChange={(e) => setEmail(e.target.value.toLowerCase())}
346346
// just trigger the handleSignin function when enter is pressed in this input as well
347347
onKeyUp={(e) => {
348348
if (e.key === 'Enter') {

0 commit comments

Comments
 (0)