change email field

14 views
Skip to first unread message

Matthew Turney

unread,
Oct 28, 2016, 4:17:40 PM10/28/16
to Devise
I see that Devise can be configured to use a different field for authentication, but can I also change the expectation that my model must have an email property? I am working with an existing database and the users table uses the field `login` for both email and authentication. It is not an option to migrate this to a different named field. Is there a way to remap the `login` field to `email` in the model or otherwise convince Devise to use login in place of email?
Reply all
Reply to author
Forward
0 new messages