mirror of
https://github.com/antonioribeiro/google2fa.git
synced 2026-04-25 16:15:49 +03:00
[GH-ISSUE #156] The GET method is not supported for this route. Supported methods: POST #69
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/google2fa#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mvdgeijn on GitHub (May 18, 2020).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/156
Hi,
I don't know if this is a misconfiguration, or a bug, but I'm getting the error "The GET method is not supported for this route. Supported methods: POST" when I enter the MFA code wrong, and after that enter the right code. On entering the correct code the second time, the error appears.
When entering the correct code the first time, no problem occurs and everything runs as expected.
I'm not sure what code I should add to this question, but I can post relevant parts when needed.
Thanks!
@Snakzi commented on GitHub (Jul 22, 2020):
Did you solve your issue? I have the exact same.
@MarkTatterTierney commented on GitHub (Sep 3, 2020):
Route::post('2fa', function () { return redirect(route('asset.index')); // Default 'home' page after login. })->name('2fa')->middleware('2fa');I had the same issue so Instead of having a redirect to previous URL I changed it to a default home page or dashboard redirect. Seemed to fix the issue.
@mvdgeijn commented on GitHub (Sep 18, 2020):
Thanks @MarkTatterTierney, I also fixed this using simular code.