This commit is contained in:
2022-11-29 14:17:11 +01:00
parent c9a7da688f
commit 25ef07b0b7
32 changed files with 1275 additions and 507 deletions

View File

@@ -109,7 +109,7 @@ class Session extends DatabaseEntity {
public function destroy(): bool {
session_destroy();
$this->active = false;
return $this->save($this->context->getSQL());
return $this->save($this->context->getSQL(), ["active"]);
}
public function update(): bool {
@@ -120,7 +120,7 @@ class Session extends DatabaseEntity {
$sql = $this->context->getSQL();
return $this->user->update($sql) &&
$this->save($sql);
$this->save($sql, ["expires", "data"]);
}
public function getCsrfToken(): string {