ingeniasoftware / luthier-ci

Improved routing, middleware support, authentication tools and more for CodeIgniter 3 framework
https://luthier.ingenia.me/ci/en/
MIT License
150 stars 38 forks source link

Route::group() is not working properly somehow. #29

Closed Ihabafia closed 5 years ago

Ihabafia commented 5 years ago

Hi,

Something strange is going on, I have the following code which you mention it in the documentation:

Route::group('password-reset', function(){
    Route::match(['get','post'], '/', 'AuthController@passwordReset')->name('password_reset');
    Route::match(['get','post'], '{token}', 'AuthController@passwordResetForm')->name('password_reset_form');
});

it is working perfectly as a get: localhost/password-reset,

but when I submit the form to route('password_reset'), which it shows: /password-reset, it's giving me a CI error saying:

The action you have requested is not allowed.

Any Idea??

Ihabafia commented 5 years ago

Sorry, I found out that it's related to the csrf_token.

Thank you,