Fixed redirects with “cachet_redirect” helper

This commit is contained in:
Davide Bellini
2016-10-13 09:51:44 +02:00
parent aff834cac0
commit 05f93e16e8
13 changed files with 83 additions and 62 deletions

View File

@@ -267,14 +267,14 @@ class SetupController extends Controller
return Response::json(['status' => 1]);
}
return cachet_route('dashboard');
return cachet_redirect('dashboard');
}
if (Request::ajax()) {
return Response::json(['errors' => $v->getMessageBag()], 400);
}
return cachet_route('setup')->withInput()->withErrors($v->getMessageBag());
return cachet_redirect('setup')->withInput()->withErrors($v->getMessageBag());
}
/**