purduehackers / passport-issuing-office

🛂 Design your passport & register for passport assembly ceremonies.
https://passports.purduehackers.com
4 stars 3 forks source link

Require guild membership to register a passport #38

Closed TheShadowEevee closed 2 months ago

TheShadowEevee commented 2 months ago

This adds a check to make sure a given Discord account is a member of a guild when creating a passport. If they are not a member, they will be prompted with an invite link (Currently hard coded to https://puhack.horse/discord). On the next refresh, their membership will be noticed.

Notable Changes:

See the following demo video:

https://github.com/user-attachments/assets/a9f7ea17-9251-47bc-bd98-fcd667c17060

Edit: Closes #12

vercel[bot] commented 2 months ago

@TheShadowEevee is attempting to deploy a commit to the Purdue Hackers Team on Vercel.

A member of the Team first needs to authorize it.

TheShadowEevee commented 2 months ago

Updated so now if the DISCORD_GUILD env variable doesn't exist, the guild membership checks are turned off.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
passport-data-pages ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 1:40pm