Please help me! Thanx
On Jul 16, 4:37 pm, Wouter <wouterg...@gmail.com> wrote: > hey, > > I have created a web app in Ruby On Rails and users can login and > register with resftul authentication. > Now I am creating an Android application where the user can access > some parts of the website (xml resources). > To access these xml files with HTTP GET Request the username and > password from the user has to be sended with this request to > authenticate the user. Now this can be done with http basic > authentication but when i put this code in my authentication file: > > def login_from_basic_auth > authenticate_or_request_with_http_basic do |username, password| > self.user = User.authenticate(username, password) > end > end > > i only can login at my site when i fill in username and password in a > dialogue. How can I disable this so the user at the website can login > normally trough login form (and register) and only enable the login > with basic authentication for request from my android application? > > How can a user register on my site when he has to fill in first a > username and password.. > > Please help me, > > Thank you > > Wouter --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---