From 899945a832037d2507d79c178790f9d7ff98de06 Mon Sep 17 00:00:00 2001 From: Warren Searle Date: Wed, 29 Jul 2020 17:36:11 +0100 Subject: [PATCH] #28 `+` being stripped from emails in IA links Quick fix. Replace spaces in received email address with plus --- src/views/SignIn.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/SignIn.vue b/src/views/SignIn.vue index 7962dd1..f3ba96e 100644 --- a/src/views/SignIn.vue +++ b/src/views/SignIn.vue @@ -73,7 +73,7 @@ export default { async created() { if (this.$route.query.email && this.$route.query.ref) { // we have email and ref querystring parameters so try to sign in automatically - const email = this.$route.query.email; + const email = this.$route.query.email.replace(/ /g, '+'); // Quick fix for #28 `+` being stripped from emails in IA links const ref = this.$route.query.ref; const returnUrl = `${window.location.protocol}//${window.location.host}/sign-in`; const response = await functions.httpsCallable('generateSignInWithEmailLink')({ ref: ref, email: email, returnUrl: returnUrl });