Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent registered user from requesting another invitation #346

Open
JeffreyATW opened this issue Nov 30, 2023 · 0 comments
Open

Prevent registered user from requesting another invitation #346

JeffreyATW opened this issue Nov 30, 2023 · 0 comments

Comments

@JeffreyATW
Copy link
Collaborator

We already prevent a user with an outstanding invitation from requesting another one. But once they're in the system and their invitation token has been cleared, they can request another one.

Change the wording on the invitation create page that says "If you're not already in our system" or similar. We shouldn't let the requester know that the user might already exist.

Add a conditional to src/middlewares/invitation.ts that checks if a user exists with the submitted email. If the user does exist, instead of creating a new invitation token, send them a reminder email that they've been signed up and give them a link to log in.

@JeffreyATW JeffreyATW changed the title Prevent invited user from requesting another invitation Prevent registered user from requesting another invitation Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant