From d87676027e0c74c0038c8728dcc827b629083c00 Mon Sep 17 00:00:00 2001 From: Matt Wright Date: Thu, 16 Aug 2012 18:42:37 -0400 Subject: [PATCH] Fix some redirect rules --- flask_security/core.py | 4 ++-- flask_security/templates/security/_messages.html | 2 +- flask_security/views.py | 7 +++++-- tests/functional_tests.py | 2 ++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/flask_security/core.py b/flask_security/core.py index 794e5fb..80e66ef 100644 --- a/flask_security/core.py +++ b/flask_security/core.py @@ -45,12 +45,12 @@ _default_config = { 'LOGIN_VIEW': '/login', 'POST_LOGIN_VIEW': '/', 'POST_LOGOUT_VIEW': '/', - 'POST_FORGOT_VIEW': '/', - 'RESET_PASSWORD_ERROR_VIEW': '/', + 'POST_FORGOT_VIEW': None, 'CONFIRM_ERROR_VIEW': None, 'POST_REGISTER_VIEW': None, 'POST_CONFIRM_VIEW': None, 'POST_RESET_VIEW': None, + 'RESET_PASSWORD_ERROR_VIEW': None, 'UNAUTHORIZED_VIEW': None, 'DEFAULT_ROLES': [], 'CONFIRMABLE': False, diff --git a/flask_security/templates/security/_messages.html b/flask_security/templates/security/_messages.html index 788a413..179d063 100644 --- a/flask_security/templates/security/_messages.html +++ b/flask_security/templates/security/_messages.html @@ -1,6 +1,6 @@ {%- with messages = get_flashed_messages(with_categories=true) -%} {% if messages %} -