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 --- .../users/forgot-password-token-send-success.html | 21 +++++++++++++ gn_auth/templates/users/forgot-password.html | 35 ++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 gn_auth/templates/users/forgot-password-token-send-success.html create mode 100644 gn_auth/templates/users/forgot-password.html (limited to 'gn_auth/templates/users') diff --git a/gn_auth/templates/users/forgot-password-token-send-success.html b/gn_auth/templates/users/forgot-password-token-send-success.html new file mode 100644 index 0000000..ab8a741 --- /dev/null +++ b/gn_auth/templates/users/forgot-password-token-send-success.html @@ -0,0 +1,21 @@ +{%extends "base.html"%} + +{%block title%}gn-auth: Forgot Password{%endblock%} + +{%block pagetitle%}Forgot Password{%endblock%} + +{%block content%} +{{flash_messages()}} + +
+ We have sent an email to '{{email}}'. Please log in to your email and + click the URL to change your password. +
+