Hi,
I have this annoying popup window for Web Password whenever a click on a
javascript action which require authentication. I have the problem for
FF, IE and Chrome. The problem isn't seen for non javascript action
where the user gets redirected to the html login page. Ideally, I want
even js to redirect there. Here is my access_denied. By the way, I tried
removing the format.any(:xml,:js) completely and the page just don't
react when I click on JS.
def access_denied
respond_to do |format|
format.html do
flash.now[:alert]="You need to be logged in to perform that
action."
store_location
redirect_to new_session_path
end
format.any(:xml,:js) do
request_http_basic_authentication 'Web Password'
end
end
end
Thanks,
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---