Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Updated to Grav 1.4.4 + login plugin now can't log in - fetch failed

Started by Jared 8 years ago · 4 replies · 1592 views
8 years ago

edit: I've just realised I can still login if I don't enter a 2FA code and just press login I'm able to log in.

I've just updated to Grav 1.4.4 through the admin panel - this went fine.
I updated the login plugin - this seemed to be fine but at the end of the update it logged me out and now I can't login to the admin panel. I'm getting this "You have been successfully logged in" followed by "fetch failed". I can log in and out but can't get past the this login prompt.

So I realised I hadn't updated the admin plugin along with the login plugin. I did this via cli and now I get a 2FA screen code along with "fetch failed" but I have 2fa disabled so I shouldn't even see this.

In Chrome dev tools I get these to 403s:

POST https://site.com/admin/update.json/task:getUpdates 403 (Forbidden)
POST https://site.com/admin/notifications.json/task:getNotifications 403 (Forbidden)


user.yaml
twofa_enabled: false

admin-login-error|690x347
admin-login-error-2fa|690x397

last edited 05/12/18 by Jared
8 years ago

Me too, exactly the same: core update went well, updating the plugin's logged me out and locked me out 😞

8 years ago

same here :( it happens only on one of my Gravs though...

8 years ago

I updated all plugins with
bin/gpm update
and the issue resolved

8 years ago

In /user/plugins/admin/admin.yaml change twofa_enabled: true to twofa_enabled: false. After that change you can login again like normal. Maybe you'll need to clear your browser cache.

It appears this setting was introduced to the config with set to true even before the Admin Plugin used it.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 80 10 hours ago
General · by pamtbaau, 15 hours ago
1 51 15 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago