mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
change header for basic authentication using the patch by zcrar70. Fixes #1021
This commit is contained in:
parent
33af53c313
commit
db5fca6b49
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ module LoginSystem
|
|||
end
|
||||
|
||||
def basic_auth_denied
|
||||
response.headers["Status"] = "Unauthorized"
|
||||
response.headers["Status"] = "401 Unauthorized"
|
||||
response.headers["WWW-Authenticate"] = "Basic realm=\"'Tracks Login Required'\""
|
||||
render :text => "401 Unauthorized: You are not authorized to interact with Tracks.", :status => 401
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue