From 37ad36da318b3b57c9edc8a7cd2db8fe79f69efa Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 11 Aug 2022 11:42:50 +0100 Subject: [PATCH] Add debug for email reset --- ref-test/app/admin/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ref-test/app/admin/views.py b/ref-test/app/admin/views.py index da98188..80ef699 100644 --- a/ref-test/app/admin/views.py +++ b/ref-test/app/admin/views.py @@ -105,6 +105,7 @@ def _reset(): user = _user break if not user: return jsonify({'error': 'The user account does not exist.'}), 400 + print(user.get_email(),request.form.get('email'),user.get_email() == request.form.get('email')) if not user.get_email() == request.form.get('email'): return jsonify({'error': 'The email address does not match the user account.'}), 400 return user.reset_password() return send_errors_to_client(form=form)