I'm getting the following error repeatedly on the login form when attempting to login after updating to CentralAuth current master.
Login error Testwiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.
I'm getting the following error repeatedly on the login form when attempting to login after updating to CentralAuth current master.
Login error Testwiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.
FWIW, this issue is only present from 7fd01658b5be onwards and I also don't have a loginwiki-like setup locally.
Are you sure it starts happening after that specific patch? Can you check what goes to the 'session' log channel when you do a login attempt? Can you share your centralauth configuration?
Nope, errors present still.
Yep, just checked again. git bisect says it is indeed 700d46817974
Can you check what goes to the 'session' log channel when you do a login attempt?
Can you share your centralauth configuration?
require_once "$IP/extensions/CentralAuth/CentralAuth.php"; $wgCentralAuthAutoNew = true; $wgCentralAuthAutoMigrate = true; $wgCentralAuthCreateOnView = true; $wgCentralAuthSilentLogin = true; $wgCentralAuthPreventUnattached = true; $wgCentralAuthCookies = false; $wgCentralAuthAutoMigrateNonGlobalAccounts = true; $wgCentralAuthEnableGlobalRenameRequest = true; $wgCentralAuthEnableUserMerge = true;
I just changed $wgCentralAuthCookies to true now and it now works. Please close this if my previous configuration was incorrect. Thanks.
Change 273581 had a related patch set uploaded (by Anomie):
Take $wgCentralAuthCookies into account when checking CentralAuthSource
Change 273581 merged by jenkins-bot:
Take $wgCentralAuthCookies into account when checking CentralAuthSource