2
I am using Devise to perform my authentication. But I have 3 profile types, and created through the command rails g devise MODEL
my users (Admim, dev and manager), but Devise created a login page for each profile type, would like to unify and log in using only one page!.
My idea is to create a view by taking the email and password and passing it to a Custom controller inheriting from Devise::Sessions
and overwrite the method that performs Login, searching the email in the 3 tables and redirecting the user to Controller responsible for his profile.
How could I do this "manual login" with Devise? Any other solution for this?
Couldn’t you do a unique authentication and do this direction depending on the responsibility of each actor in the system? That is, you will use a single template that can be admin, dev or manager.
– Luiz Picolo