Authentificacion

This commit is contained in:
2020-04-16 13:46:06 -04:00
parent 9e8533ea50
commit 080577d002
9 changed files with 44 additions and 22 deletions

View File

@ -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;
}
}