Skip to content

[User Registration] Changes to userauth App in Support of Email Validation #114

Closed
@BethanyG

Description

@BethanyG

Background

In talking through the "New User Email" flow on 3/22, we identified multiple pieces of New User Registration & Authentication that need to be implemented/changed. One of those pieces is the auth/ endpoint, and configuring django-allauth & potentially installing and configuring django-rest-auth to send confirmation/validation emails to new users upon signup.

One starting place is this blog post by Blake Yang: Django Signup w Activation email via API, although some changes will be necessary for our particular situation. (See issues #111 & #113)

Acceptance Criteria

  • Make any necessary changes to the INSTALLED_APPs section of the base.py file in config/settings to wire up allauth and/or rest-auth
  • Configure/validate a templates folder for email templates in base.py
  • Configure an email backend in base.py Cookiecutter is currently set up for mailhog as a test SMTP server, but we'll need a live server/service for production.
  • Configure allauth in base.py
  • Add any additional registration URLs to userauth/urls.py
  • Add override URL patterns if needed for register, validate, rest password, etc.
  • Add view logic as needed in userauth/views.py
  • Create/Add appropriate unittest and or pytest tests to cover the above functionality

This Issue Depends On

#111 - Make Email Required on Backend

Open Questions

  1. See issue [User Registration] JWT Serializer Changes in Support of User Email Validation #113. This issue has the same question around endpoints and naming.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions