Problem/Motivation
I noticed that clicking "Cancel" on the disable form uses the current user to determine the redirect to the TFA overview. This seems like a mistake, unless I am missing something.
Proposed resolution
The same logic should be applied as in TfaSetupForm (using the passed user obejct instead of the current user).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | disable-form-cancel-redirect-3364126-2.patch | 643 bytes | chewi3 |
Comments
Comment #2
chewi3 commentedI added a patch that changes the logic on the disable form cancel callback to be similar to the TfaSetupForm cancel callback logic. Please review.
Comment #3
chewi3 commentedComment #6
cmlaraThis also matches the code that is in submitForm().
I'm not sure why we have the code duplication, though resolving that I will consider out of scope for this issue.
Pushed to 8.x-1.x and 2.x.
Thank you for the patch.