Skip to content

Commit fd9190d

Browse files
author
Sachin Maheshwari
committed
dynamic domain for check email template
1 parent fe845d2 commit fd9190d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ SIGNUPFILENAME="./web-assets/js/signup.js"
1111
perl -pi -e "s/\{\{DOMAIN\}\}/$DOMAIN/g" $SIGNUPFILENAME
1212
perl -pi -e "s/\{\{AUTH0DOMAIN\}\}/$AUTH0DOMAIN/g" $SIGNUPFILENAME
1313

14+
CHECKEMAIL="./web-assets/static-pages/check_email.html"
15+
perl -pi -e "s/\{\{DOMAIN\}\}/$DOMAIN/g" $CHECKEMAIL
1416

1517
mkdir dist
1618
cp -rv ./web-assets/css/* ./dist/

web-assets/static-pages/check_email.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
if (state) {
2828
document.querySelector("#resend").addEventListener("click", e => {
2929
e.preventDefault();
30-
window.location = 'https://auth.topcoder-dev.com/continue?state=' + state + '&resend=1';
30+
window.location = 'https://auth.{{DOMAIN}}/continue?state=' + state + '&resend=1';
3131
});
3232
} else {
3333
document.querySelector("#resend-text").style.display = "none";
@@ -84,4 +84,4 @@ <h2 id="page-subtitle-heading" class="page-subtitle-heading">
8484
</div>
8585
</body>
8686

87-
</html>
87+
</html>

0 commit comments

Comments
 (0)