-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frequently logged out when using 2FA #100
Comments
Hi @KarlBishop, thanks for the issue and explanation. The |
Aha, very interesting.
And we are also using Servd, like the OP of #63 I read Servd's blog post about fixing the previous issue - it sounds like we shouldn't have the same thing happening because we're running with the latest version of the Servd plugin. But it does seem very similar. I'll ask Servd if they can take a look. |
I was experiencing the same issues as described here and on the Servd's blogpost. We are running our installation in a multinode K8s environment and configured the php.ini session.save_handler to memcached. This worked fine for all Craft installs except for the sites with the 2FA auth enabled. We now configured Craft/Yii to use the dedicated memcached driver and combining that with the yii\web\CacheSession instead of the 'FileDriver' that uses the the save_path. It would be nice if Craft or Yii would have just swaped the adapter when the session.save_handler is set to memcached, but i'm not going to fight that battle :). I'll just drop my solution here and hope this will save someone's day (or week). Also a shoutout to the guys at servd that decided to create the blogpost.
|
We are also experiencing frequently asked to re-enter our password when using Two-Factor Authentication (2FA), even after selecting "Keep me signed in for X weeks." Steps to Reproduce:
Expected Behavior:
Actual Behavior:
We don't use Servd. Craft Pro 4.5.11.1 |
Hey folks, Joe from Servd. If you're looking to increase the |
I'm frequently asked to re-enter my password when using 2FA, even when I check "Keep me signed in for 2 weeks". It happens about every 25 minutes.
Re-entering my password seems to work but actually fails - I cannot continue editing and am booted back to the login screen when I click any link.
At the login screen, after entering my password and 2FA code I can sometimes continue... BUT sometimes the 2FA code is rejected and I have to manually go to "/admin/logout" before I can proceed through login.
I read issue #42 - not sure if a similar situation applies in my case but here are some of my settings that appeared to be relevant there:
I was wondering if my db got screwed up somehow (e.g. tables missing after uninstall/reinstall).
I can see two tables that obviously belong to the plugin:
Any idea what could be causing my issue?
I realise the plugin is no longer maintained, so any help would be much appreciated.
Craft Pro 4.10.4
PHP 8.1.28
MariaDB 10.11.5
Two-Factor Authentication 3.4.0
The text was updated successfully, but these errors were encountered: