mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: encode email before passing it as a query param
This commit is contained in:
parent
28fc3f323e
commit
1472a594eb
@ -130,7 +130,7 @@ const errorCodeMessages: {
|
|||||||
Your account is already registered.
|
Your account is already registered.
|
||||||
<Link
|
<Link
|
||||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
||||||
href={`/sign-in${email ? `?email=${email}` : ``}`}
|
href={`/sign-in${email ? `?email=${encodeURIComponent(email)}` : ``}`}
|
||||||
>
|
>
|
||||||
Sign In
|
Sign In
|
||||||
</Link>
|
</Link>
|
||||||
@ -171,7 +171,7 @@ const errorCodeMessages: {
|
|||||||
No account found.
|
No account found.
|
||||||
<Link
|
<Link
|
||||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
||||||
href={`/${email ? `?email=${email}` : ``}`}
|
href={`/${email ? `?email=${encodeURIComponent(email)}` : ``}`}
|
||||||
>
|
>
|
||||||
Create one
|
Create one
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -68,7 +68,7 @@ export const PasswordForm: React.FC<Props> = (props) => {
|
|||||||
<div className="mt-2 w-full pb-3">
|
<div className="mt-2 w-full pb-3">
|
||||||
{isSmtpConfigured ? (
|
{isSmtpConfigured ? (
|
||||||
<Link
|
<Link
|
||||||
href={`/accounts/forgot-password?email=${email}`}
|
href={`/accounts/forgot-password?email=${encodeURIComponent(email)}`}
|
||||||
className="text-xs font-medium text-custom-primary-100"
|
className="text-xs font-medium text-custom-primary-100"
|
||||||
>
|
>
|
||||||
Forgot your password?
|
Forgot your password?
|
||||||
|
@ -116,7 +116,7 @@ const errorCodeMessages: {
|
|||||||
Your account is already registered.
|
Your account is already registered.
|
||||||
<Link
|
<Link
|
||||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
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
|
Sign In
|
||||||
</Link>
|
</Link>
|
||||||
@ -155,7 +155,7 @@ const errorCodeMessages: {
|
|||||||
No account found.
|
No account found.
|
||||||
<Link
|
<Link
|
||||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
||||||
href={`/${email ? `?email=${email}` : ``}`}
|
href={`/${email ? `?email=${encodeURIComponent(email)}` : ``}`}
|
||||||
>
|
>
|
||||||
Create one
|
Create one
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -75,7 +75,7 @@ export const AuthPasswordForm: React.FC<Props> = observer((props: Props) => {
|
|||||||
{isSMTPConfigured ? (
|
{isSMTPConfigured ? (
|
||||||
<Link
|
<Link
|
||||||
onClick={() => captureEvent(FORGOT_PASSWORD)}
|
onClick={() => captureEvent(FORGOT_PASSWORD)}
|
||||||
href={`/accounts/forgot-password?email=${email}`}
|
href={`/accounts/forgot-password?email=${encodeURIComponent(email)}`}
|
||||||
className="text-xs font-medium text-custom-primary-100"
|
className="text-xs font-medium text-custom-primary-100"
|
||||||
>
|
>
|
||||||
Forgot your password?
|
Forgot your password?
|
||||||
|
@ -127,7 +127,7 @@ const errorCodeMessages: {
|
|||||||
Your account is already registered.
|
Your account is already registered.
|
||||||
<Link
|
<Link
|
||||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
||||||
href={`/sign-in${email ? `?email=${email}` : ``}`}
|
href={`/sign-in${email ? `?email=${encodeURIComponent(email)}` : ``}`}
|
||||||
>
|
>
|
||||||
Sign In
|
Sign In
|
||||||
</Link>
|
</Link>
|
||||||
@ -169,7 +169,7 @@ const errorCodeMessages: {
|
|||||||
No account found.
|
No account found.
|
||||||
<Link
|
<Link
|
||||||
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
className="underline underline-offset-4 font-medium hover:font-bold transition-all"
|
||||||
href={`/${email ? `?email=${email}` : ``}`}
|
href={`/${email ? `?email=${encodeURIComponent(email)}` : ``}`}
|
||||||
>
|
>
|
||||||
Create one
|
Create one
|
||||||
</Link>
|
</Link>
|
||||||
|
Loading…
Reference in New Issue
Block a user