Jump to content

Unable to login to admin area with 2FA after update to 5.3.9


Seiya

Recommended Posts

Immediately after upgrading today to 5.3.9 we are not longer able to login. When we enter our Google authenticator token it just immediately redirects back to the login page. Even the backup code doesn't work, does the same redirect?

 

Anyone else have this :mad: issue??

Link to comment
Share on other sites

I had to go into MySQL and change authmodule in my admin profile, to blank, then re-added the two form line back after logging in and it worked just peachy - a bit of work, but better than waiting on fixes and ensuring everything was functioning.

Link to comment
Share on other sites

The hotfix works - However you need to be careful that you are uploading the dologin.php file into your ADMIN folder... NOT the base folder of your install. (where there is also a dologin.php file)

 

I made this mistake and it took me a bit to work out what I did wrong.

 

The hotfix should contain an admin subfolder with the dologin.php file in it to save confusion.

Link to comment
Share on other sites

In the bug reports forum , they close de bug becouse Nate C, said " I have not heard any other reports of people unable to login without the 2fa issue" , and close the post.

 

I have a ticket open now for more than 26 hours!!! last coment was more that 12 hours ago asking me to apply the hotfix for 2fa problem, even though I explain I do not use 2fa.

 

- - - Updated - - -

 

I guess they will get reponsability for this, in case any domain goes to redemption period

Link to comment
Share on other sites

I am having the same issues.

 

I tried removing the duosecurity references in the database with no luck.

 

I think the issue is that I did not run the installation folder script properly, but now I cannot access it as it says I'm already running the latest version.

Link to comment
Share on other sites

I managed to fix my issue. This was because I incorrectly updated my installation, failing to run the upgrade script.

 

I solved this by running the following in my database (backup before you run this!):

ALTER TABLE tbladmins MODIFY COLUMN `password` VARCHAR(255) NOT NULL DEFAULT '';

ALTER TABLE tbladmins ADD COLUMN `passwordhash` VARCHAR(255) NOT NULL DEFAULT '' AFTER `password`;

Link to comment
Share on other sites

I managed to fix my issue. This was because I incorrectly updated my installation, failing to run the upgrade script.

 

I solved this by running the following in my database (backup before you run this!):

ALTER TABLE tbladmins MODIFY COLUMN `password` VARCHAR(255) NOT NULL DEFAULT '';

ALTER TABLE tbladmins ADD COLUMN `passwordhash` VARCHAR(255) NOT NULL DEFAULT '' AFTER `password`;

 

This fixed it for me thanks.

Link to comment
Share on other sites

I've been running into the same issue and I did some digging. In my case, the database changes were completed.

 

In my activity log I see this: Failed to verify admin password hash: Calculated algorithm "unknown" is not supported

 

I went looking and found that administrators who have logged in since the upgrade are unable to login, but administrators who have not yet logged in can login exactly once. When an administrator logs in their 32-character password (hash) is replaced with a 64+1 character hash and a passwordhash of 64+1 characters is generated (64 hex characters, plus a colon).

 

I have also discovered that if I revert an account back to it's 32-character password hash and blank out the passwordhash field, the user is able to login successfully exactly once.

 

Hope this information helps others troubleshoot and possibly get in, if you have appropriate backups of the tbladmins table. Note that if you do, do not restore the whole table blindly as there was a new field added, passwordhash, instead just restore the password field and blank the passwordhash field.

 

To assist admins here, I've added simple PHP script that makes the appropriate modifications to the database to allow an admin to login "once" as many times as needed.

Link to comment
Share on other sites

almost 24 hours now and still no concrete solutions from whmcs. Luckily, I don't have problem on client side and i can still access admin side after I login I just need to change the last part of the admin url to /admin/supporttickets.php to view tickets and other whmcs features.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated