Topic: I can't login...

hey, that subject is wrong you think, since I am logged in, but it's like this:

I can't log in with my user name and password on this site, I have to find the email I recived with a new password, and click on that link to log in. I have tried changing passwords several times, but it never works... I'm thinking it might have to do with the fact that I have a space in my user name, but I don't really know....

Re: I can't login...

I also have a space in my loginname, but I don't have problems.

My homepage: http://www.komendera.com/
Working at: http://www.abloom.at/
My blog: soaked and soaped http://soakedandsoaped.com/

Re: I can't login...

Well, now it seems I can login again.. strange..

Last edited by Hans Nilsson (2006-08-17 08:55:44)

Re: I can't login...

I'll try and figure out what is causing it (or get Vinnie or Kelli to do so tongue). What sort of error are you getting?  It is telling you your password is incorrect?

Edit: Just noticed your edit.  Hmm.  Let me know if you have any other problems. smile

Josh Catone helps run this place
Rails Forum - Rails Jobs

Re: I can't login...

I have been making some experiments allowing or disallowing cookies.

If you have cookies disabled in your browser and try to login to this forum, you get the message that login succeeded and there is this usual redirect but then you can read on top of the page that you are not logged in.

It would be nice if there was a message telling us that we disabled cookies and that we should not have done this.

This problem with the forum raises a Rails-question:

How can I manage this problem in my Rails project?

I think I should write some exception-handling into the file
app/controllers/login_controller.rb but I get the following exception as soon as I try to login to my project just before anything in my method index has been executed:

  ActionController::InvalidAuthenticityToken in LoginController#index

In the login_controller.rb I have the code:

def index
    puts " ------------------ test 0"
end

And in the view there is are two text_fields for login and password and a submit-button. If I press the button without filling in the text_fields there is no error and if I fill in a valid login/password I get the error mentioned above caused by not allowing cookies.

I would like do redirect the user to a page telling her to allow cookies.

My question: Where do I have to put the code for exception handling in this case if the error appears before anything in the index-method is executed?

Last edited by pandora (2008-09-14 10:08:36)