LoginLogout
This commit is contained in:
1 parent
132e8790a3
commit
8d91e805dd
10 files changed
+293
-51
No files matched your search
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user