plataformatec/devise — Issue #1639: Error: 'authenticable_salt returned nil for the User model'
Author: RKushnir
Created: 2012-02-10 16:32:18+00:00
State: open

I'm using rails 3.1.3 and just upgraded devise from 1.5.3 to 2.0.1. I re-generated the initializer so all properties have their default values. Now I'm getting this error when trying to login user:

authenticable_salt returned nil for the User model. In order to use rememberable, you must ensure a password is always set or implement rememberable_value in your model with your own logic.

I don't have the standard DB-backed configuration because I'm using a custom authentication strategy via 3rd-party web-service. I tried adding `authenticable_salt` column to `users` table but that doesn't help as it's not being assigned anywhere and is always `nil`. If I really need to override the `rememberable_value` method, what should I put in it? Is there an example implementation? Please, I need some guidance in resolving this. Thank you.