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

[FEATURE] Registration GraphQL mutation #45

Closed
11 tasks done
YummYume opened this issue Nov 13, 2023 · 0 comments · Fixed by #120
Closed
11 tasks done

[FEATURE] Registration GraphQL mutation #45

YummYume opened this issue Nov 13, 2023 · 0 comments · Fixed by #120
Assignees
Labels
backend Backend development tasks and issues email email issue feature Tasks related to the development of new features

Comments

@YummYume
Copy link
Owner

YummYume commented Nov 13, 2023

Type of feature

Something new

The name of the feature

Registration (back)

Feature description

The GraphQL endpoint should expose a mutation to register.

Register mutation :

  • username should be unique and 100 characters max.
  • email should be unique and a valid email.
  • plainPassword should be at least 8 characters with 1 uppercase, 1 lowercase and 1 special character. Should be 100 characters max and required.
  • locale should be either 'fr' or 'en' (see UserLocaleEnum). This locale is only used for off request treatment (like sending emails).
  • reason the reason as to why they want to create an account. Should be 2000 characters max and required.
  • Send an email whenever an account is created.
  • Create tests for this mutation.

Validate account mutation :

  • An admin can approve the registration request of a user.
  • An admin should receive an email when a registration account is sent.
  • When the account is validated, send a mail to the user. When it is not, do nothing (?).
  • Create a test for this mutation.

Additional information

Linked with #44.

@YummYume YummYume added feature Tasks related to the development of new features backend Backend development tasks and issues labels Nov 13, 2023
@YummYume YummYume changed the title [FEATURE] Registration (back) [FEATURE] Registration GraphQL endpoint Nov 13, 2023
@YummYume YummYume changed the title [FEATURE] Registration GraphQL endpoint [FEATURE] Registration GraphQL mutation Nov 13, 2023
@YummYume YummYume mentioned this issue Nov 22, 2023
8 tasks
@Spacelocust Spacelocust added the email email issue label Dec 6, 2023
@YummYume YummYume mentioned this issue Jan 30, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend development tasks and issues email email issue feature Tasks related to the development of new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants