Dev SSO: Tables, SAML
This commit is contained in:
@@ -21,8 +21,7 @@ class RedirectRoute extends Route {
|
||||
}
|
||||
|
||||
public function call(Router $router, array $params): string {
|
||||
header("Location: " . $this->getDestination());
|
||||
http_response_code($this->code);
|
||||
$router->redirect($this->code, $this->getDestination());
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
@@ -176,4 +176,9 @@ class RouterCache extends Router {
|
||||
|
||||
return $this->routes;
|
||||
}
|
||||
|
||||
public function redirect(int $code, string $location): void {
|
||||
header("Location: " . $location);
|
||||
http_response_code($code);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user