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