Fix static exception for unconfirmed user requests.

This commit is contained in:
Patrick Jentsch 2019-07-09 13:18:46 +02:00
parent a3efdc87cc
commit 43be1045d9

View File

@ -69,7 +69,7 @@ def before_request():
if current_user.is_authenticated \
and not current_user.confirmed \
and request.blueprint != 'auth' \
and request.blueprint != 'static':
and request.endpoint != 'static':
return redirect(url_for('auth.unconfirmed'))