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
{
if (!session_check()) {
return $this->json(['error' => 'Logout failed.']);
return $this->json(['error' => 'Logout failed.', 'a' => $_REQUEST]);
}
// Destroy the active session

View file

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

View file

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