Add verification code storage for Discord usernames
Updates the `/verify` command in discord-bot/commands/verify.js to include the Discord username when storing verification codes in the `discord_verifications` table. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 8bd9c239-20ba-45f9-afec-76bd4f2adfd0 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/saoW2ee Replit-Helium-Checkpoint-Created: true
This commit is contained in:
commit
1c1194f0e3
2 changed files with 3 additions and 2 deletions
2
.replit
2
.replit
|
|
@ -1,4 +1,4 @@
|
|||
modules = ["nodejs-20", "web"]
|
||||
modules = ["nodejs-20", "web", "postgresql-16"]
|
||||
[agent]
|
||||
expertMode = true
|
||||
|
||||
|
|
|
|||
|
|
@ -40,10 +40,11 @@ module.exports = {
|
|||
.toUpperCase();
|
||||
const expiresAt = new Date(Date.now() + 15 * 60 * 1000); // 15 minutes
|
||||
|
||||
// Store verification code
|
||||
// Store verification code with Discord username
|
||||
await supabase.from("discord_verifications").insert({
|
||||
discord_id: interaction.user.id,
|
||||
verification_code: verificationCode,
|
||||
username: interaction.user.username,
|
||||
expires_at: expiresAt.toISOString(),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue