AfterClass-io / afterclass.io-v2

[alpha] v2 of https://afterclass.io!
https://afterclass-io.vercel.app
MIT License
4 stars 2 forks source link

feat: validate school domain for user sign up #93

Closed Jaylin0312 closed 3 months ago

Jaylin0312 commented 3 months ago

closes #11

Changes

Implementation

  1. We have decided to use a single string to represent the school's email domain rather than an array. Our research indicates that the domain name after the '@' symbol in email addresses remains consistent, regardless of any prefixes. See SMU example.
  2. If registered user try to sign up again, supabase api will throw an error, which is caught by the program and error message will be displayed (see supabase create user api)

Testing

To set up the project locally for testing, follow the following steps:

  1. Install dependencies yarn install
  2. Run the development server yarn dev
  3. Head over to user sign up page
  4. Fill in valid school emails and password
  5. If account creation is successful, you should be redirected to email verification page

Preview

Auth

vercel[bot] commented 3 months ago

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

Name Status Preview Comments Updated (UTC)
afterclass-io-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2024 5:50pm