Skip to content

Commit

Permalink
Merge pull request #50 from jac-uk/feature/28-plus-being-replaced-wit…
Browse files Browse the repository at this point in the history
…h-space

#28 `+` being stripped from emails in IA links
  • Loading branch information
YaaL committed Jul 30, 2020
2 parents 1689417 + 899945a commit 104297c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/SignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 104297c

Please sign in to comment.