From 05ff1141ba33376e9ca9e866a6826b815964fa5f Mon Sep 17 00:00:00 2001 From: Jiri Kuncar Date: Fri, 5 Jan 2018 14:16:22 +0100 Subject: [PATCH] Fix url generation of UNAUTHORIZED_VIEW --- flask_security/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_security/decorators.py b/flask_security/decorators.py index 1b329155..c5f3d85f 100644 --- a/flask_security/decorators.py +++ b/flask_security/decorators.py @@ -43,7 +43,7 @@ def _get_unauthorized_response(text=None, headers=None): def _get_unauthorized_view(): - view = utils.get_url(utils.config_value('UNAUTHORIZED_VIEW')) + view = utils.config_value('UNAUTHORIZED_VIEW') if view: if callable(view): view = view()