From 210d0294b59759c7cccd3d1f7408627cecc7f86a Mon Sep 17 00:00:00 2001 From: sostler Date: Thu, 29 Apr 2010 03:11:35 -0400 Subject: Password reset feature --- template/debug.st | 29 +++++++++++++++++++++--- template/mail/reset.st | 6 +++++ template/reset.st | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 template/mail/reset.st create mode 100644 template/reset.st (limited to 'template') diff --git a/template/debug.st b/template/debug.st index c9bbcdb..bba203f 100644 --- a/template/debug.st +++ b/template/debug.st @@ -1,5 +1,4 @@ - dump.fm DEBUG $head()$ - $banner()$
@@ -47,7 +45,32 @@
-
+
+ +



+ +
+

Password Reset Email

+
+ + +
+ + +
+ +
+ $resettemps: { t | + $t.template$ + }$ +
+
+ + +
+
+
diff --git a/template/mail/reset.st b/template/mail/reset.st new file mode 100644 index 0000000..8112f90 --- /dev/null +++ b/template/mail/reset.st @@ -0,0 +1,6 @@ +SUBJECT: dump.fm Password Reset + +We're sorry you don't have your password, $nick$. Every moment +you're not dumping is a dagger in our hearts. + +Click <$link$> to get back into the game! diff --git a/template/reset.st b/template/reset.st new file mode 100644 index 0000000..f166d88 --- /dev/null +++ b/template/reset.st @@ -0,0 +1,61 @@ + + + dump.fm Password Reset + + $head()$ + + + + + $banner()$ +
+ $if(valid_request)$ + +

Reset Your Password

+
+ + +
+ + +
+
+ + +
+ $else$ +

Bad Request

+ Your password reset link is invalid or has expired. Please try + resetting again. + $endif$ +
+ + -- cgit v1.2.3-70-g09d2