open-source-at-illinois / osai-bot

Open-Source at Illinois Discord bot
GNU General Public License v3.0
2 stars 6 forks source link

/netid netid -> UIUC NetID #18

Closed xuxey closed 1 year ago

xuxey commented 2 years ago
  1. sends email verification code to their netid@illinois.edu
xuxey commented 2 years ago

Flow:

  1. User sends a message to the bot with their netid
  2. Bot checks if the user is in the database
  3. If the user is in the database, bot checks if the user has verified their netid
  4. If the user has verified their netid, do nothing.
  5. If the user has not verified their netid, bot sends an email to the user's net ID with a verification code a. Bot generates a verification code and stores it in a database b. Bot sends the user an email with the verification code
  6. User sends the verification code to the bot a. Bot checks if the verification code is valid and not expired b. If the verification code is valid and not expired, bot updates the user's verified status to true c. If the verification code is not valid or expired, bot sends an error message to the user