You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auth: sign-up & sign-in restricted to @iiitl.ac.in emails #6
This is the core privacy guarantee: only people with IIITL credentials can enter the platform. All alumni and students have @iiitl.ac.in emails issued during their time at IIITL; related #10).
Acceptance criteria
Use Auth.js (NextAuth v5) — or propose alternative in the issue
Sign-up accepts only emails matching /@iiitl\.ac\.in$/ (case-insensitive). All other emails are rejected with a clear message.
Google OAuth is allowed only if hd === "iiitl.ac.in" (Google Workspace hosted-domain check); other Google accounts are rejected
Sessions stored in the DB with a 30-day rolling expiry
/login and /register UIs wired to real flow
Failed / rejected sign-up attempts logged (for abuse monitoring) but not shown to user
Rate-limit magic link requests to 5 per email per hour
If user has signed up with google then complete he should be prompted to create a new password. Make sure this is atomic and save the user only when password is created
@Ewan-Dkhar We have a deadline for this website and it needs to be presented to a Faculty. Could you please confirm how much time would it require for you to raise a PR?
Activity
DistantMyth commentedon Apr 10, 2026
@MrImmortal09 I'd like to work on this issue. Could you please assign it to me?
MrImmortal09 commentedon Apr 10, 2026
Yeah sure. Feel free to open a pr
DistantMyth commentedon Apr 10, 2026
@MrImmortal09 could you please look at #40
aeev07 commentedon Apr 11, 2026
Can I still get assigned to this issue?
MrImmortal09 commentedon Apr 11, 2026
Here u go @Freny07
Abhishek-Dige commentedon Apr 11, 2026
Can I also work on this issue ? I have made some progress.
MrImmortal09 commentedon Apr 11, 2026
@Abhishek-Dige This issue was first assigned to @Freny07 , if he doesn't make a PR until midnight then you can make one.
MrImmortal09 commentedon Apr 11, 2026
@Abhishek-Dige You can pick another issue.
mini-walkerx commentedon Apr 11, 2026
🔗 @Freny07 opened PR #44 for this issue and has been auto-assigned.
9 remaining items
mini-walkerx commentedon Apr 12, 2026
✅ Successfully unassigned @Abhishek-Dige. Waitlist queue triggers to be processed here.
Ewan-Dkhar commentedon Apr 13, 2026
I'd like to work on this. @MrImmortal09 could you assign this to me
MrImmortal09 commentedon Apr 13, 2026
@Ewan-Dkhar Feel free to work on this.
Ewan-Dkhar commentedon Apr 14, 2026
@MrImmortal09 I have a question. For failed sign-up attemp, do i log it to audit or make a different model for recording abuse?
MrImmortal09 commentedon Apr 14, 2026
Just log it for now, You can make a different PR if you want to for solving abuse problem.
Ewan-Dkhar commentedon Apr 14, 2026
ok
MrImmortal09 commentedon Apr 16, 2026
@Ewan-Dkhar We have a deadline for this website and it needs to be presented to a Faculty. Could you please confirm how much time would it require for you to raise a PR?
Ewan-Dkhar commentedon Apr 16, 2026
@MrImmortal09 I'll be done with the pr by Tomorrow.
Ewan-Dkhar commentedon Apr 16, 2026
@MrImmortal09 i have a question. For sign up, since there is no password field, should i use magic links to verify the email and sign up the user?
mini-walkerx commentedon Apr 17, 2026
🔗 @Ewan-Dkhar opened PR #49 for this issue and has been auto-assigned.
fix(auth): rate-limit password sign-in and harden DB connection
feat(auth): sign-in and sign-up for @iiitl.ac.in accounts (#50)