Skip to content
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

Handling TokenMismatchException #23

Open
zepco opened this issue Aug 24, 2016 · 2 comments
Open

Handling TokenMismatchException #23

zepco opened this issue Aug 24, 2016 · 2 comments

Comments

@zepco
Copy link

zepco commented Aug 24, 2016

Go to admin/login or other form and wait about 2 hours and try to submit. You'll see error:
TokenMismatchException in VerifyCsrfToken.php line 67:

@chadanuk
Copy link
Contributor

Hi @zepco...

This is really down to Laravel's framework (see https://laracasts.com/discuss/channels/general-discussion/crsf-checked-before-auth) and the generation of the CSRF token which is a security feature we wouldn't want to remove.

However, I think a nicer error would be a good idea so we'll keep this open as we think of the best way to report this 'feature' to the user.

@d3v2a
Copy link

d3v2a commented Nov 5, 2016

it would be palced in handler of coaster cms in the render function

if ($e instanceof TokenMismatchException) {
            // do something to notify user 
            $request->flash();
            return back();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants