From 1c2db3df6d8417cb927e0b47774dcdd6397f5469 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 19 Aug 2024 17:01:03 -0500 Subject: Generate token and send out "Forgot Password" email * Generate token to use for verifying the password-change request * Send out email with token --- gn_auth/templates/emails/forgot-password.html | 30 +++++++++++++++++++++++++++ gn_auth/templates/emails/forgot-password.txt | 10 +++++++++ 2 files changed, 40 insertions(+) create mode 100644 gn_auth/templates/emails/forgot-password.html create mode 100644 gn_auth/templates/emails/forgot-password.txt (limited to 'gn_auth/templates/emails') diff --git a/gn_auth/templates/emails/forgot-password.html b/gn_auth/templates/emails/forgot-password.html new file mode 100644 index 0000000..18321d5 --- /dev/null +++ b/gn_auth/templates/emails/forgot-password.html @@ -0,0 +1,30 @@ + +
+ ++ You (or someone pretending to be you) made a request to change your + password. Please follow the link below to change it. +
+ ++ Click the button below to change your password + Change my Password.
+ +
+ Or copy the link below onto your browser's address bar:
+ {{forgot_password_uri}}
+
+ If you did not request to change your password, simply ignore this email. +
+ ++ The link will expire in {{expiration_minutes}} minutes. +
+ + diff --git a/gn_auth/templates/emails/forgot-password.txt b/gn_auth/templates/emails/forgot-password.txt new file mode 100644 index 0000000..7eda908 --- /dev/null +++ b/gn_auth/templates/emails/forgot-password.txt @@ -0,0 +1,10 @@ +{{subject}} +=============== + +You (or someone pretending to be you) made a request to change your password. Please copy the link below onto your browser to change your password: + +{{forgot_password_uri}} + +If you did not request to change your password, simply ignore this email. + +The link will expire {{expiration_minutes}} minutes. -- cgit 1.4.1