Maintenance mode blocks TOTP TFA entry

Created on 26 March 2016, over 8 years ago
Updated 28 October 2023, 8 months ago

Using TFA 2.0-beta3 and TFA Basic Plugins 1.0-dev, I get a blank maintenance mode screen after i enter my user name and password, when I should have been offered to enter the TFA code. The TFA configuration is set to be optional, so I can actually (succesfully) log in with other accounts that dont have TFA enabled, but not with accounts that have TFA TOTP enabled.

Once I use another admin to put the site out of maintenance mode, and then change the cookie session back to the user having TFA problems, I just need to refresh that page (I am _not_ prompted to enter the login credentials again (good)) to get it to display as expected. Then I get to enter the TFA code and successfully log in.

Unsure if this is related to TFA or TFA Basic plugins.

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada Francewhoa Sept-รŽles, Quรฉbec, ๐Ÿ‡จ๐Ÿ‡ฆ

    This is to confirm that RickJ's patch resolves this challenge

    Thanks to all contributors for resolving this

    Could this patch be committed, please?

  • ๐Ÿ‡จ๐Ÿ‡ฆCanada Francewhoa Sept-รŽles, Quรฉbec, ๐Ÿ‡จ๐Ÿ‡ฆ

    For those facing this challenge, the steps below allows you to temporarily log in your Drupal without any patch:

    1. Using any file manager to your liking, temporarily move the tfa folder outside Drupal. For example:
      • From: /home/<VIRTUAL.SERVER>/public_html/sites/all/modules/contrib/admin_menu/tfa
      • To : /home/<VIRTUAL.SERVER>/temporary/tfa
    2. Using your any internet navigator to your liking, such as Firefox, go to https://<WEBSITE>/user
    3. Log-in
    4. Move the tfa folder back to: /home/<VIRTUAL.SERVER>/public_html/sites/all/modules/contrib/admin_menu/tfa
    5. You are now successfully still log-in your Drupal

    Keep in mind that, in the future, after you log out, the challenge will be back. For a permanent resolution, you need to apply the appropriate patch above.

  • Status changed to Fixed 8 months ago
  • ๐Ÿ‡ธ๐Ÿ‡ฐSlovakia poker10

    Committed this, thanks everyone who contributed!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024