{"issue":{"state":"open","created_at":"2011-11-25T15:21:50Z","updated_at":"2011-11-25T15:21:50Z","user":{"gravatar_id":"3065a9e6c715e58786fe27a3345a6f7d","id":384665,"url":"https://api.github.com/users/naveedtariq","login":"naveedtariq","avatar_url":"https://secure.gravatar.com/avatar/3065a9e6c715e58786fe27a3345a6f7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"I saw the other issue that mentions logging out of users on password change. I am facing a similar issue but only when password change fails also I am using AJAX if that matters. I added :bypass => true to sign_in(@user, :bypass => true). If the password change is successful I doesn't sign_out the user but if it fails it signs out. I have tested with the following scenariors\r\n\r\n1. current_password empty, both password and password_confirmation provided and matching and valid, resulting in user being signed_out\r\n2. current_password correct and valid, password and passwor_confirmation provided but not matching, resulting in user being signed_out\r\n3. current_password correct and valid, password and password_confirmation both not provided, does not sign out the user.\r\n4. current_password correct and valid, password and password_confirmation both provided and matching, does not sign out the user.\r\n\r\n    @artist = current_artist\r\n    @artist.update_with_password(params[:artist])\r\n    sign_in(@artist, :bypass => true)\r\n\r\n\r\n","assignee":null,"id":2350137,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":1464,"title":"Automatically logout on password change failed via ajax","closed_at":null,"html_url":"https://github.com/plataformatec/devise/issues/1464","url":"https://api.github.com/repos/plataformatec/devise/issues/1464","milestone":null},"action":"opened"}