I would love to hear your thoughts on this.
I am using the htpasswd plugin located here:
To validate access against a .htpasswd file. The plugin is working
great but currently if you fail to get the PW correct and generate a 401
(Unauthorized) the user is presented with a completely blank page.
My goal is to at least redirect them to the home page or present a
message saying their login attempts have failed.
Here is what i have tried:
rescue_from Htpasswd::UnknownUserAccount, :with => :http_status_code
^---- The above does nothing and does NOT catch anything. I have tried
with Htpasswd::Error, and ActiveResource::UnauthorizedAccess --
I have also tried a before filter with a method in application.rb
calling htpasswd but i get an error saying the htpasswd method does not
Any input or even a starting place where i can begin researching would
be great .