Skip to content
This repository was archived by the owner on Jul 19, 2026. It is now read-only.

open registration, remove invitation system, one mosque per admin - #11

Merged
CoderMehad merged 1 commit into
mainfrom
refactor/open-registration
Mar 28, 2026
Merged

open registration, remove invitation system, one mosque per admin#11
CoderMehad merged 1 commit into
mainfrom
refactor/open-registration

Conversation

@CoderMehad

Copy link
Copy Markdown
Owner
  • Registration is now open
  • admins.mosque_id is nullable; admin registers first, creates mosque after
  • JWT payload encodes only sub (admin ID); jwtAuth fetches live admin from DB so mosqueId is always current without re-issuing tokens
  • Mosque creation enforces one mosque per admin and links admin on success
  • Invitation model, repository, schema and routes removed entirely
  • POST /auth/invite route removed
  • GET /super/invitations removed

… admin

- Registration is now open — no invite token required
- admins.mosque_id is nullable; admin registers first, creates mosque after
- JWT payload encodes only sub (admin ID); jwtAuth fetches live admin from DB
  so mosqueId is always current without re-issuing tokens
- Mosque creation enforces one mosque per admin and links admin on success
- Invitation model, repository, schema and routes removed entirely
- POST /auth/invite route removed
- GET /super/invitations removed
@CoderMehad
CoderMehad merged commit 0eb70ad into main Mar 28, 2026
1 check passed
@CoderMehad
CoderMehad deleted the refactor/open-registration branch March 28, 2026 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant