Can not login

Permalink Browser Info Environment
Hi,
After upgrading to the latest Concrete version the two factor auth stopped working. When I attempt to login I get:
Undefined variable $userIdentifier

It is gettting: /login/callback/concrete/two_step_authentication/admin/1694927123%3A3c2f0c993e69bec84bf0d46ed7a57a77/0

I saw the previous question and it sounds like an update you have made may resolve this. However, I'm not sure how to get the update and then apply it as I can not log into Concrete. Suggestions?

Type: Pre-Sale
Status: In Progress
plschneide
View Replies:
mnakalay replied on at Permalink Reply
mnakalay
Hello. it seems you already have the latest version but a copied file need to be replaced.

You need to go to the files on your server, make a copy of the file packages\two_step_authentication\authentication\concrete\two_step_authentication.php

and put it inside application\authentication\concrete where it will replace the file already there.

You might also have to empty your cache depending on your settings.

Please let me know if that doesn't work for you or if you feel unsure and want me to help perform the modification.
plschneide replied on at Permalink Reply
plschneide
Thank you so much for the speedy reply!

I made this change and that did the trick. I didn't need to clear the cache, but did anyway - just in case for later.

Do you think it was just an issue with the update that wasn't quite right (e.g., bad timing on my updating the your app and concrete updates?)

Either way thank you so much!
mnakalay replied on at Permalink Reply
mnakalay
A tiny change in the new Concrete CMS broke my package because of a conflicting variable name. So I had to change that variable name.
When you enable 2FA on your site, the package copies 2 files in the application folder. One of them contains the faulty variable name.

Like an idiot, I forgot that I needed to also modify the file already in the application folder.

In future versions, I'll make sure that happens during the updating process to avoid this kind of issue.

concrete5 Environment Information

Not available

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.