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

Admin Side Volunteer-Account Creation (Backend) #37

Open
8 tasks done
avayedawadi opened this issue Jan 23, 2025 · 0 comments · May be fixed by #44
Open
8 tasks done

Admin Side Volunteer-Account Creation (Backend) #37

avayedawadi opened this issue Jan 23, 2025 · 0 comments · May be fixed by #44
Assignees

Comments

@avayedawadi
Copy link
Contributor

avayedawadi commented Jan 23, 2025

Description

  • This is a pretty involved ticket, you'll have a decent amount of direction in how you want to implement it, but I can give assistance as needed.
  • We basically need a way on the admin side for the admin to send emails to volunteers that the volunteers then sign up with.
  • That is to say, we need a way for the admin to send signup links that allow only specific volunteers with those emails to create an account.

Acceptance Criteria

  1. Admin Functionality:

    • An admin interface exists where admins can input one or more volunteer email addresses. Does not have to be fleshed out, just a way to test the functionality for now. Can literally be a basic HTML form.
    • Admins can submit the emails to generate unique sign-up links.
  2. Database Management:

    • Each email is associated with a unique token stored in the database.
    • Tokens have an expiration time (e.g., 24 hours).
    • Tokens are invalidated or deleted after use.
  3. Volunteer Flow:

    • Volunteers receive an email with a sign-up link.
    • Clicking the link pre-fills the email field on the sign-up page and validates the token.
    • Volunteers can create their accounts only if the token is valid.

Implementation Notes

  • This is a SUPER involved and pretty difficult ticket, don't worry about necessarily getting this done in one sprint.
  • The backend will have an endpoint to acept email addresses from the admin that then generates unique tokens.
  • Then use an email service to send a sign-up link with the token that can then be used to create an account. You have to extract the token from the link when the volunteer goes to make the account from the link. Then if everything is good, let them make an account.
  • Don't worry too much about edge cases for now, and focus on the backend endpoint logic for now, we will come back to the frontend details later. But you may have to create basic HTML forms just to validate all the logic.
@paimasiko paimasiko linked a pull request Feb 3, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants