Authentificacion
This commit is contained in:
@ -108,4 +108,15 @@ class Login {
|
||||
$this->is_logged_in = true;
|
||||
return true;
|
||||
}
|
||||
public function logout(): bool {
|
||||
$this->removeCookie();
|
||||
$data = [
|
||||
'ip' => 0,
|
||||
'token' => ':',
|
||||
'time' => 0
|
||||
];
|
||||
$this->manager->folder('data')->save($this->filename, $data);
|
||||
$this->is_logged_in = false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user