The route user.pass.login should also be taken into account

Created on 13 November 2024, 9 days ago

Problem/Motivation

If the website send the link "[user:one-time-login-url]/login" in the reset pass email configuration, this is not the route "user.reset" but the route "user.reset.login" that is used.

In this particular case, the module "shy on time" does not work.

Proposed resolution

Change the following condition in the event subsriber:

if ($request->attributes->get('_route') === 'user.reset') 

With:

if ($request->attributes->get('_route') === 'user.reset' || $request->attributes->get('_route') === 'user.reset.login' ) 
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇭🇰Hong Kong davidpetit

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024