diff options
Diffstat (limited to 'app/main/routes.py')
| -rw-r--r-- | app/main/routes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/main/routes.py b/app/main/routes.py index e40b971..60dd6e1 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -30,6 +30,8 @@ Thank you! @bp.route("/") @bp.route("/index") def index(): + if not current_user.is_anonymous and not current_user.is_confirmed: + return redirect(url_for("auth.not_confirmed")) if current_user.is_authenticated: user_id = current_user.id tasks = Task.query.filter_by(annotator_id=user_id).all() |
