<?php

if (!actionRequirePost('login')) {
    return;
}

if (!actionRequireCsrf('login', 'login', 'logout_csrf')) {
    return;
}

app(\MintyPHP\Service\Auth\AuthService::class)->logoutAndRedirect('login');
