mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 10:31:59 -04:00
Tweak a session variable name and update comments
This commit is contained in:
parent
3050ab7219
commit
11d9d0f44a
12 changed files with 25 additions and 37 deletions
|
@ -22,7 +22,7 @@ if($exception){
|
|||
// Prompt the user for a password.
|
||||
http_response_code(Enums\HttpCode::Unauthorized->value);
|
||||
$passwordRequired = true;
|
||||
$exception = null; // Clear the exception so we don't show an error
|
||||
$exception = null; // Clear the exception so we don't show an error.
|
||||
}
|
||||
else{
|
||||
http_response_code(Enums\HttpCode::UnprocessableContent->value);
|
||||
|
|
|
@ -26,7 +26,7 @@ try{
|
|||
header('Location: ' . $redirect);
|
||||
}
|
||||
else{
|
||||
// Access via Enums\HttpRequestType::Rest api; 201 CREATED with location
|
||||
// Access via REST API; output `201 Created` with location.
|
||||
http_response_code(Enums\HttpCode::Created->value);
|
||||
header('Location: ' . $session->Url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue