Password can not be reset, when user hasn't accepted the legal terms yet

Created on 13 August 2019, over 5 years ago
Updated 7 June 2024, 6 months ago

Postponed on πŸ› Reset notice is showing up twice (from core and legal module) and don't disappear after password change RTBC

Problem/Motivation

When resetting your password, an E-mail is sent to you with a password reset link with an attached "password-reset-token". But, either if the user never accepted the legal terms (like in the tests, through programmatically creating a user "PasswordResetTest "=> "testPasswordReset()") or the "Ask to accept T&Cs on every login" setting is activated, the user has to accept the legal terms again, before he is able to reset his password.

Accepting the legal terms and pressing "Continue", will remove the "password-reset-token" and lead to the user not being able to properly reset their password.

Steps to reproduce

See Problem/Motivation.

Proposed resolution

  • Keep the URL query intact after accepting the legal terms
  • Test in "testPasswordReset()" that resetting the password actually works
  • Split the "testPasswordReset()" test in three different tests:
  1. testPasswordResetWithoutLegalAccepted()
  2. testPasswordResetWithLegalAccepted()
  3. testPasswordResetLegalAcceptOnEveryLogin()

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States johne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024