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