I am trying to implement Authlogic. Registering is fine, it enters all the necessary details into my database..
.. but when I try to log in, it gives me the error:
1 error prohibited this user session from being saved
There were problems with the following fields:
Password is not valid
My password is valid. I am not sure what is happening. Any ideas?
I had the same problem, and it was because I was migrating from Restful authentication. The issue was: Restful authentication puts a 40 char cap on password-salt and crypted-password. the hashes generated by authlogic are larger than that.
class RemovePasswordSaltCap < ActiveRecord::Migration
def self.up
change_column :users, :password_salt, :string, :limit => nil
change_column :users, :crypted_password, :string, :limit => nil
end
end
Found this answer in the fine manual.