Needs work
Project:
Legal
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2020 at 14:58 UTC
Updated:
26 Jul 2024 at 20:06 UTC
Jump to comment: Most recent
If the tfa module is used with the legal module and TFA is enabled for a role and a user with that role who has already set up their TFA access tries to reset their password they will receive an access denied error on a password reset instead of being prompted for their TFA code after agreeing to the Terms & Conditions from legal.
This issue was addressed in Legal 7.x, but the problem still exists in 8.x
Comments
Comment #2
fjgarlin commentedI think there are some related issues with also SSO systems or oauth. The problem is that the legal module clears the session (destroying any existing data) right after accepting the new terms. So that's most likely what's happening here too, or at least it looks like it.
I think the issue is this one: https://www.drupal.org/project/legal/issues/2897486 and these are the key lines from the module that provoke the issue:
Comment #3
gregglesThe change in #2 is not a patch so moving back to needs work.
Comment #4
john franklin commentedDoes the patch in #2897486: Don't log out users who do not accept the T&C fix TFA?