From a7a5a039918a68264257ae8dd94e97010fcd6e48 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 11 Aug 2022 13:02:41 +0100 Subject: [PATCH] Consistency in paths for templates --- ref-test/app/admin/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ref-test/app/admin/views.py b/ref-test/app/admin/views.py index 00f2149..aecec68 100644 --- a/ref-test/app/admin/views.py +++ b/ref-test/app/admin/views.py @@ -91,7 +91,7 @@ def _register(): flash(message=message, category='error') return jsonify({'error': message}), 401 return send_errors_to_client(form=form) - return render_template('admin/auth/register.html', form=form) + return render_template('/admin/auth/register.html', form=form) @admin.route('/reset/', methods=['GET','POST']) def _reset(): @@ -117,7 +117,7 @@ def _reset(): user.clear_reset_tokens() if request.args.get('verification') == verification_token: form = UpdatePassword() - return render_template('admin/auth/update-password.html', form=form, user=user.id) + return render_template('/admin/auth/update-password.html', form=form, user=user.id) flash('The verification of your password reset request failed and the token has been invalidated. Please make a new reset password request.', 'error') return render_template('/admin/auth/reset.html', form=form)