venom/src/Venom/Admin/Routes/LoginRoute.php
versustunez eb6770204a VENOM-10: Moved to new Module Structure
Fixed File-Endings
Added Entity-System
2021-01-03 16:59:11 +01:00

27 lines
No EOL
403 B
PHP
Executable file

<?php
namespace Venom\Admin\Routes;
use Venom\Security\Security;
class LoginRoute
{
public function login(): bool
{
Security::get()->login();
return true;
}
public function handle($fnc): bool
{
if ($fnc === 'logout') {
Security::get()->logout();
echo '{"reload": true}';
die();
}
return true;
}
}