Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D debexpo
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mentors.debian.net
  • debexpo
  • Merge requests
  • !182

Email validation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Baptiste Beauplat requested to merge lyknode/debexpo:email-validation into live Aug 31, 2021
  • Overview 1
  • Commits 12
  • Pipelines 1
  • Changes 15

This MR bring email validation to debexpo.

The workflow is similar to the password reset:

  • Request the change from the profile page
  • Open the token link sent to the new email
  • Validate the change

However, django password reset helpers had to be adapted to an email update. In order to do so, two classes have been extended:

  • EmailChangeConfirmView from django's PasswordResetConfirmView
  • EmailChangeTokenGenerator from django's PasswordResetTokenGenerator

The changes ensure a token is invalidated when the email changes in DB and cannot be used with another email.

I've updated the testing env at https://debexpo.debian.net to run this branch. (Note: email are not sent on this env but stored in /home/lyknode/projects/debian/repo/lyknode-guest/debexpo/mbox)

Other than that, tests and translation have been updated as usual.

Closes #83 (closed).

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: email-validation