LoginLogout

This commit is contained in:
2024-07-21 15:49:43 +02:00
parent 132e8790a3
commit 8d91e805dd
10 changed files with 293 additions and 51 deletions
+4 -2
View File
@@ -2,11 +2,13 @@
namespace Api\Logout;
use \Khofmann\Models\User\User;
class Logout
{
public function post()
{
echo "LOGOUT HANDLER post";
print_r(input()->all());
$token = request()->getHeader("token");
return json_decode(User::getByToken($token)->logOut($token));
}
}