docker: gd extension + 2FA Bugfix
This commit is contained in:
@@ -22,11 +22,16 @@ class StaticFileRoute extends Route {
|
||||
$this->extra = json_encode($this->code);
|
||||
}
|
||||
|
||||
public function postFetch(SQL $sql, array $row) {
|
||||
parent::postFetch($sql, $row);
|
||||
protected function readExtra() {
|
||||
parent::readExtra();
|
||||
$this->code = json_decode($this->extra);
|
||||
}
|
||||
|
||||
public function preInsert(array &$row) {
|
||||
parent::preInsert($row);
|
||||
$this->extra = json_encode($this->code);
|
||||
}
|
||||
|
||||
public function call(Router $router, array $params): string {
|
||||
http_response_code($this->code);
|
||||
$this->serveStatic($this->getAbsolutePath(), $router);
|
||||
|
||||
Reference in New Issue
Block a user