summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-07-02 17:37:13 -0400
committerJules Laplace <jules@okfoc.us>2014-07-02 17:37:13 -0400
commit544ee1236d188f1d24654817481abcf8d078facd (patch)
tree70045eccfbd282369b39f3f94ad31a51576537a4 /views
parent3a4ce7f31adc53b3c22e9dc75155de0281521ef0 (diff)
password reset email; also sends email
Diffstat (limited to 'views')
-rw-r--r--views/modal.ejs1
-rw-r--r--views/partials/sign-in.ejs12
2 files changed, 9 insertions, 4 deletions
diff --git a/views/modal.ejs b/views/modal.ejs
index 4550aff..6ed3fa1 100644
--- a/views/modal.ejs
+++ b/views/modal.ejs
@@ -19,5 +19,6 @@
</div>
</body>
[[ include partials/scripts ]]
+<script id="opt" type="text/json">[[- JSON.stringify(opt) ]]</script>
<script>window.isModalView = true</script>
</html>
diff --git a/views/partials/sign-in.ejs b/views/partials/sign-in.ejs
index 11b930f..3f05fff 100644
--- a/views/partials/sign-in.ejs
+++ b/views/partials/sign-in.ejs
@@ -27,7 +27,8 @@
<div class="errorList"></div>
</div>
<br><br>
- <a data-role="show-signup-modal" href="#">Make a new account</a>
+ <a data-role="show-signup-modal" href="#">Make a new account</a><br>
+ <a data-role="forgot-password" href="#">Forgot your password?</a>
</form>
</div>
</div>
@@ -74,9 +75,11 @@
</div>
</div>
-<div class="mediaDrawer fixed animate forgotPassword">
+<div class="mediaDrawer fixed animate passwordForgot">
+ <span class="close">X</span>
<div class="box">
<form id="forgotPw" method="post" autocomplete="off">
+ <input type="hidden" name="_csrf" value="[[- token ]]">
<li>
Forgot your password? Enter the email address you used to sign up
and we can reset it for you.
@@ -98,9 +101,10 @@
</div>
</div>
-<div class="mediaDrawer fixed animate resetPassword">
+<div class="mediaDrawer fixed animate passwordReset">
<div class="box">
<form id="resetPassword" method="post">
+ <input type="hidden" name="_csrf" value="[[- token ]]">
<input type="hidden" name="nonce">
Please reset your password.
<br><br>
@@ -129,7 +133,7 @@
<div class="mediaDrawer fixed animate usernameTaken">
<div class="box">
<form id="usernameTaken" method="post" autocomplete="off">
- We're sorry, the username <b>[[- username ]]</b> is already being used.
+ We're sorry, the username <b id="usernameThatIsTaken"></b> is already being used.
<br><br>
Please choose another username.
<br><br>