fix migration and logging out

This commit is contained in:
flash 2016-12-09 00:18:54 +01:00
parent 7876b95a41
commit ca7633ba28
3 changed files with 5 additions and 4 deletions

View file

@ -43,7 +43,7 @@ class AuthController extends Controller
public function logout(): string public function logout(): string
{ {
if (!session_check()) { if (!session_check()) {
return $this->json(['error' => 'Logout failed.']); return $this->json(['error' => 'Logout failed.', 'a' => $_REQUEST]);
} }
// Destroy the active session // Destroy the active session

View file

@ -3,7 +3,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Sakura\DB; use Sakura\DB;
class CacheParsedBbcode extends Migration class RemoveFaq extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.

View file

@ -133,8 +133,9 @@
var ajax = new Sakura.AJAX; var ajax = new Sakura.AJAX;
ajax.SetUrl("{{ route('auth.logout') }}"); ajax.SetUrl("{{ route('auth.logout') }}");
ajax.SetFormData({ ajax.Form();
"sessions": Sakura.Config.SessionId ajax.SetSend({
"session": Sakura.Config.SessionId
}); });
ajax.AddCallback(200, function () { ajax.AddCallback(200, function () {