Bugfix/login failure due email capitalisation (#1884)

* convert the email to lowercase

this code will prevent the email check from failing if the user email contain capitalisation.

* Updated Readme to contain warning.

* Revert "Updated Readme to contain warning."

This reverts commit c406587c73.

Co-authored-by: Bailey Pumfleet <pumfleet@hey.com>
pull/2143/head
Jonathan Ng 2022-03-14 19:45:22 +08:00 committed by GitHub
parent c9fb82a7e6
commit 3d685eb4ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ export default function Login({
)}
{isSAMLLoginEnabled && (
<SAMLLogin
email={form.getValues("email")}
email={form.getValues("email").toLowerCase()}
samlTenantID={samlTenantID}
samlProductID={samlProductID}
hostedCal={hostedCal}