mirror of https://github.com/JohnHammond/CTFd.git
Prevent double confirmations from happening (#1253)
* Prevents user from confirming their account twicebulk-clear-sessions 2.3.1
parent
7cd8d90e0c
commit
0bae69bee4
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue