PedroBern / django-graphql-auth

Django registration and authentication with GraphQL.
https://django-graphql-auth.readthedocs.io/en/latest/
MIT License
329 stars 106 forks source link

Allow passwordless registration #77

Closed joshuachinemezu closed 3 years ago

joshuachinemezu commented 3 years ago

Solves #76

This allows for passwordless registration - See #76 for discussion

Keynotes:

I've just added the following configuration keys:

Key Description Default
ALLOW_PASSWORDLESS_REGISTRATION Used for enabling passwordless registration False Boolean
SEND_PASSWORD_SET_EMAIL If set to True, user will be notified to set their password after registration - dependent on ALLOW_PASSWORDLESS_REGISTRATION False Boolean
PASSWORD_SET_PATH_ON_EMAIL Path variable used in password set email password-set String
EXPIRATION_PASSWORD_SET_TOKEN Time for set password token to expire timedelta(hours=1) datetime
EMAIL_SUBJECT_PASSWORD_SET Email subject of set password email/password_set_subject.txt String
EMAIL_TEMPLATE_PASSWORD_SET Email template for set password email/password_set_email.html String
codecov-io commented 3 years ago

Codecov Report

Merging #77 into master will decrease coverage by 2.20%. The diff coverage is 68.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
- Coverage   94.72%   92.52%   -2.21%     
==========================================
  Files          11       11              
  Lines         626      682      +56     
==========================================
+ Hits          593      631      +38     
- Misses         33       51      +18     
Impacted Files Coverage Δ
graphql_auth/forms.py 75.00% <42.85%> (-25.00%) :arrow_down:
graphql_auth/mixins.py 90.40% <68.75%> (-2.44%) :arrow_down:
graphql_auth/constants.py 100.00% <100.00%> (ø)
graphql_auth/exceptions.py 100.00% <100.00%> (ø)
graphql_auth/mutations.py 100.00% <100.00%> (ø)
graphql_auth/relay.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1be7a55...ac42030. Read the comment docs.