Support Simple Password Reset module

Created on 8 September 2024, 6 months ago
Updated 9 September 2024, 6 months ago

Problem/Motivation

If both TFA and Simple Password Reset modules are enabled, the TFA will be skipped.

Steps to reproduce

Enable both modules and configure. Try to reset password.

Proposed resolution

Obviously here, we need to decide which module should support the other. On the one hand, since TFA module introduces the MFA feature, logically it should strive to provide support here. On the other hand, the regular user password reset is covered by TFA module and it is understandable that TFA doesn't support Simple Password Reset module out of the box.

If we look from the who has more tools to solve this, it is TFA module, as it controls the code necessary for MFA to happen. Proposed solution is:
- Create a custom controller specifically for Simple Password Rest module.
- Create a custom TFA form based on `EntryForm` specifically with support of Simple Password Reset module.
- Alter the `user.reset` route to use that controller.
- In the custom controller, redirect user to TFA form OR perform regular Simple Password Reset routine if no MFA validation is required.

✨ Feature request
Status

Postponed

Version

2.0

Component

Code

Created by

πŸ‡°πŸ‡¬Kyrgyzstan elaman

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

Comments & Activities

Production build 0.71.5 2024