Minor tweaks

This commit is contained in:
Hillel Coren 2017-03-21 10:13:48 +02:00
parent c43dd4b15e
commit 7aba027896
2 changed files with 5 additions and 3 deletions

View File

@ -82,8 +82,7 @@ class Handler extends ExceptionHandler
} }
if ($e instanceof TokenMismatchException) { if ($e instanceof TokenMismatchException) {
// prevent loop since the page auto-submits if (! in_array($request->path(), ['get_started', 'save_sidebar_state'])) {
if ($request->path() != 'get_started' && $request->path() != 'save_sidebar_state') {
// https://gist.github.com/jrmadsen67/bd0f9ad0ef1ed6bb594e // https://gist.github.com/jrmadsen67/bd0f9ad0ef1ed6bb594e
return redirect() return redirect()
->back() ->back()

View File

@ -257,7 +257,10 @@
data: data, data: data,
success: function(response) { success: function(response) {
redirectToPayment(); redirectToPayment();
} },
error: function(response) {
// TODO
}
}); });
} }