From f6231dc779f93f683e9c727aeaea81208653ec85 Mon Sep 17 00:00:00 2001 From: viveksantayana Date: Thu, 16 Jun 2022 14:13:07 +0100 Subject: [PATCH] Debug password reset url --- ref-test/app/models/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ref-test/app/models/user.py b/ref-test/app/models/user.py index 9999a9d..59f1f91 100644 --- a/ref-test/app/models/user.py +++ b/ref-test/app/models/user.py @@ -122,7 +122,7 @@ class User(UserMixin, db.Model): {new_password}\n\n You may use this to log back in to your account, and subsequently change your password to something more suitable.\n\n Alternatively, you may visit the following private link using your unique token to override your password. Copy and paste the following link in a web browser. Please note that this token is only valid once:\n\n - {url_for('admin_auth.reset_gateway', token = self.reset_token, verification = self.verification_token, _external = True)}\n\n + {url_for('admin._reset', token = self.reset_token, verification = self.verification_token, _external = True)}\n\n Hopefully, this should enable access to your account once again.\n\n Have a nice day!\n\n SKA Refereeing @@ -136,7 +136,7 @@ class User(UserMixin, db.Model): {new_password}

You may use this to log back in to your account, and subsequently change your password to something more suitable.

Alternatively, you may visit the following private link using your unique token to override your password. Copy and paste the following link in a web browser. Please note that this token is only valid once:

-

{url_for('admin_auth.reset_gateway', token = self.reset_token, verification = self.verification_token, _external = True)}

+

{url_for('admin._reset', token = self.reset_token, verification = self.verification_token, _external = True)}

Hopefully, this should enable access to your account once again.

Have a nice day!

SKA Refereeing