Skip to content

Commit 1002374

Browse files
committed
added end-to-end localizaton tests
1 parent 2196342 commit 1002374

10 files changed

+351
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed when someone navigates to a verify email or reset password link
4+
but their security token is wrong. This can either mean the user has clicked on a
5+
stale link (i.e. re-click on a password reset link after resetting their password) or
6+
(rarely) this could be a sign of a malicious user trying to tamper with your app.
7+
-->
8+
<html>
9+
10+
<head>
11+
<title>Email Verification</title>
12+
</head>
13+
14+
<body>
15+
<h1>{{appName}}</h1>
16+
<h1>Invalid verification link!</h1>
17+
<form method="POST" action="{{{publicServerUrl}}}/apps/{{{appId}}}/resend_verification_email">
18+
<input name="username" type="hidden" value="{{{username}}}">
19+
<input name="locale" type="hidden" value="{{{locale}}}">
20+
<button type="submit">Resend Link</button>
21+
</form>
22+
</body>
23+
24+
</html>

public/de-AT/link_send_fail.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed when someone navigates to a verify email link with an invalid
4+
security token and requests a link resend. This page is displayed when the username from
5+
the original link is invalid or if the email of that user has already been verified when
6+
the resend request is made.
7+
-->
8+
<html>
9+
10+
<head>
11+
<title>Email Verification</title>
12+
</head>
13+
14+
<body>
15+
<h1>{{appName}}</h1>
16+
<h1>Invalid link!</h1>
17+
<p>No link sent. User not found or email already verified.</p>
18+
</body>
19+
20+
</html>

public/de-AT/link_send_success.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed when someone navigates to a verify email link with an invalid
4+
security token and requests a link resend. This page is displayed when the username
5+
from the original verification link has been found and a new verification link has
6+
been successfully sent to the corresponding stored email.
7+
-->
8+
<html>
9+
10+
<head>
11+
<title>Email Verification</title>
12+
</head>
13+
14+
<body>
15+
<h1>{{appName}}</h1>
16+
<h1>Link sent!</h1>
17+
<p>A new link has been sent. Check your email.</p>
18+
</body>
19+
20+
</html>
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed whenever someone has successfully reset their password.
4+
Pro and Enterprise accounts may edit this page and tell Parse to use that custom
5+
version in their Parse app. See the App Settigns page for more information.
6+
-->
7+
<html>
8+
9+
<head>
10+
<title>Email Verification</title>
11+
</head>
12+
13+
<body>
14+
<h1>{{appName}}</h1>
15+
<h1>Email verified!</h1>
16+
<p>Successfully verified your email for account: {{username}}.</p>
17+
</body>
18+
19+
</html>
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed when someone navigates to a verify email or reset password link
4+
but their security token is wrong. This can either mean the user has clicked on a
5+
stale link (i.e. re-click on a password reset link after resetting their password) or
6+
(rarely) this could be a sign of a malicious user trying to tamper with your app.
7+
-->
8+
<html>
9+
10+
<head>
11+
<title>Email Verification</title>
12+
</head>
13+
14+
<body>
15+
<h1>{{appName}}</h1>
16+
<h1>Invalid verification link!</h1>
17+
<form method="POST" action="{{{publicServerUrl}}}/apps/{{{appId}}}/resend_verification_email">
18+
<input name="username" type="hidden" value="{{{username}}}">
19+
<input name="locale" type="hidden" value="{{{locale}}}">
20+
<button type="submit">Resend Link</button>
21+
</form>
22+
</body>
23+
24+
</html>

public/de/link_send_fail.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed when someone navigates to a verify email link with an invalid
4+
security token and requests a link resend. This page is displayed when the username from
5+
the original link is invalid or if the email of that user has already been verified when
6+
the resend request is made.
7+
-->
8+
<html>
9+
10+
<head>
11+
<title>Email Verification</title>
12+
</head>
13+
14+
<body>
15+
<h1>{{appName}}</h1>
16+
<h1>Invalid link!</h1>
17+
<p>No link sent. User not found or email already verified.</p>
18+
</body>
19+
20+
</html>

public/de/link_send_success.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed when someone navigates to a verify email link with an invalid
4+
security token and requests a link resend. This page is displayed when the username
5+
from the original verification link has been found and a new verification link has
6+
been successfully sent to the corresponding stored email.
7+
-->
8+
<html>
9+
10+
<head>
11+
<title>Email Verification</title>
12+
</head>
13+
14+
<body>
15+
<h1>{{appName}}</h1>
16+
<h1>Link sent!</h1>
17+
<p>A new link has been sent. Check your email.</p>
18+
</body>
19+
20+
</html>

public/de/verify_email_success.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<!--
3+
This page is displayed whenever someone has successfully reset their password.
4+
Pro and Enterprise accounts may edit this page and tell Parse to use that custom
5+
version in their Parse app. See the App Settigns page for more information.
6+
-->
7+
<html>
8+
9+
<head>
10+
<title>Email Verification</title>
11+
</head>
12+
13+
<body>
14+
<h1>{{appName}}</h1>
15+
<h1>Email verified!</h1>
16+
<p>Successfully verified your email for account: {{username}}.</p>
17+
</body>
18+
19+
</html>

public/invalid_verification_link.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
<body>
1515
<h1>{{appName}}</h1>
1616
<h1>Invalid verification link!</h1>
17-
<form id="resendForm" method="POST" action="/apps/{{{appId}}}/resend_verification_email">
18-
<input id="usernameField" class="form-control" name="username" type="hidden" value="{{{username}}}">
19-
<button type="submit" class="btn btn-default">Resend Link</button>
17+
<form method="POST" action="{{{publicServerUrl}}}/apps/{{{appId}}}/resend_verification_email">
18+
<input name="username" type="hidden" value="{{{username}}}">
19+
<input name="locale" type="hidden" value="{{{locale}}}">
20+
<button type="submit">Resend Link</button>
2021
</form>
2122
</body>
2223

0 commit comments

Comments
 (0)