Closed kzkin closed 8 years ago
Could you tell me why you want this change? It seems to add unnecessary complexity to the Login module.
I want to use database used in rails project (devise scheme). Maybe there's another way ?
What do you want to change it to?
@riverrun this is probably the devise schema @KozakIvan is using https://github.com/plataformatec/devise/blob/master/test/rails_app/db/schema.rb
Yes, i'm using default devise schema. It is possible to setup password field name through config openmaize, same as in schema. Sorry for my english.
I might add an option to allow you to use "encrypted_password" as well as "password_hash". It should be ready in 2 or 3 days' time.
In the current master branch, there is now an option to change this in the config.
Just add the following line to your config file (if you're using encrypted_password
instead of password_hash):
hash_name: :encrypted_password
Make sure that you remember the :
before encrypted_password.
Thanks for your attention and time. Works like a charm. Little note that hash_name must equal field name of password in schema (database), maybe specify about that in documentation ? Otherwise, in my opinion, there is a difficult to diagnose error.
You're right. I need to update the documentation. I'll let you know when I update the hex package.
Change "password_hash" field name in scheme through config