I am using devise for authentication.
If the email already exists it logs the user in.
If the email does not exist then it creates a new user using those credentials.
there should be only one submit button and a field for email and password.
I am using devise for authentication. If the email already exists it logs the
Share
that is possible for that have to write condition for that in your controller
for example
or
or # for devise – in registration controller