Can't stop impersonating a user that has not setup two-factor authentication
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=16445) - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=16445) </details> <!--IssueSummary end--> ### Summary Can't stop impersonating a user that has not setup two-factor authentication. I simply get redirected back to the two-factor authentication page. ### Steps to reproduce 1. Make sure Two Factor authentication is required 2. Create a new user 3. Impersonate the new user before they have setup two-factor authentication 4. Try to stop impersonating the user ### Expected behaviour I should be able to stop impersonating the user ### Actual behaviour I can't stop impersonating the user by clicking the button on top bar. ### Workaround * Include a grace period before enabling 2FA in the Admin Settings * When you impersonate the user and get redirected to their 2FA page, click the `Configure later` button on the grace period prompt
issue