added discord bot

This commit is contained in:
2026-01-07 17:22:56 +01:00
parent b32d7624c5
commit 6d21b232da
8 changed files with 666 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ def send_verification_email(user_email):
token = s.dumps(user_email, salt='email-confirm-h4tum-ctf-2025')
link = url_for('main.verify_email', token=token, _external=True)
#msg = Message('Verify your CTF Registration', recipients=[user_email])
#msg.body = f'Click here to confirm your spot: {link}'
#msg = Message('Verify your CTF Registration', recipients=["fdohq9ipugtc@mockmail.io"])
#msg.body = f'Click here to confirm your spot: {link}\nThanks for registering {user_email}'
print(link)
@bp.route('/', methods=['GET', 'POST'])

View File

@@ -37,7 +37,7 @@
<h1>ACCESS GRANTED</h1>
<h2>{{ message }}</h2>
<h2>
<a href="{{ discord_link }}">Join the Discord server</a>
<a href="{{ discord_link }}" target="_blank">Join the Discord server</a>
| Access Token: {{ discord_token }}
</h2>
</body>