fix migration and logging out
This commit is contained in:
parent
7876b95a41
commit
ca7633ba28
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Reference in a new issue