I'd like to authenticate user with company_id
beside email
, password
(Devise's default).
I just searched Devise wiki sign-in-using-their-username-or-email, and Scope-login-to-subdomain
I just find out about Devise, and I am not good to understand clearly. So, someone guide me how to add new field for authenticating. How to change the Devise in initializers, User model, etc
One more thing: could you explain the difference between config.authentication_keys
and config.request_keys
in initializers\devise.erb. Thanks
I solve my problem by just adding this in the initilizers/devise.rb