diff --git a/flask_security/core.py b/flask_security/core.py index 228aece..f254e0f 100644 --- a/flask_security/core.py +++ b/flask_security/core.py @@ -245,8 +245,9 @@ class Security(object): identity_loaded.connect_via(app)(_on_identity_loaded) - app.register_blueprint(_create_blueprint(app), - url_prefix=cv('URL_PREFIX', app=app)) + bp = _create_blueprint(app) + pre = cv('URL_PREFIX', app=app) + app.register_blueprint(bp, url_prefix=pre) app.security = self diff --git a/flask_security/templates/security/passwords/edit.html b/flask_security/templates/security/passwords/edit.html index b17de1a..723773e 100644 --- a/flask_security/templates/security/passwords/edit.html +++ b/flask_security/templates/security/passwords/edit.html @@ -1,6 +1,6 @@ -{% include "../messages.html" %} +{% include "security/messages.html" %}