claim rewards automatically on email verification

master
Aevann 2023-02-02 22:42:56 +02:00
parent 28dbece47e
commit 97ec2acadc
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from files.helpers.get import *
from files.helpers.mail import *
from files.helpers.useractions import *
from files.routes.wrappers import *
from files.routes.users import claim_rewards
from files.__main__ import app, limiter
@app.post("/verify_email")
@ -43,6 +44,7 @@ def activate(v:User):
user.email = email
user.is_activated = True
claim_rewards(user)
badge_grant(user=user, badge_id=2)