chore: encode email before passing it as a query param (#4468)
This commit is contained in:
parent
92c5ccef3d
commit
e044a8c2ac
5 changed files with 8 additions and 8 deletions
|
|
@ -116,7 +116,7 @@ const errorCodeMessages: {
|
|||
Your account is already registered.
|
||||
<Link
|
||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
||||
href={`/accounts/sign-in${email ? `?email=${email}` : ``}`}
|
||||
href={`/accounts/sign-in${email ? `?email=${encodeURIComponent(email)}` : ``}`}
|
||||
>
|
||||
Sign In
|
||||
</Link>
|
||||
|
|
@ -155,7 +155,7 @@ const errorCodeMessages: {
|
|||
No account found.
|
||||
<Link
|
||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
||||
href={`/${email ? `?email=${email}` : ``}`}
|
||||
href={`/${email ? `?email=${encodeURIComponent(email)}` : ``}`}
|
||||
>
|
||||
Create one
|
||||
</Link>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue