summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c153de2)
and this manually set one conflicts with that and causes a 200 response
in rails 2.3.2 it seems.
# handle authenticate pass/fail
unless @user
# no auth, the user does not exist or the password was wrong
# handle authenticate pass/fail
unless @user
# no auth, the user does not exist or the password was wrong
- response.headers["Status"] = "Unauthorized"
response.headers["WWW-Authenticate"] = "Basic realm=\"#{realm}\""
render :text => errormessage, :status => :unauthorized
return false
response.headers["WWW-Authenticate"] = "Basic realm=\"#{realm}\""
render :text => errormessage, :status => :unauthorized
return false