diff --git a/CTFd/auth.py b/CTFd/auth.py index 133e21e..10ecfe1 100644 --- a/CTFd/auth.py +++ b/CTFd/auth.py @@ -46,6 +46,9 @@ def confirm(data=None): ) user = Users.query.filter_by(email=user_email).first_or_404() + if user.verified: + return redirect(url_for("views.settings")) + user.verified = True log( "registrations",