melalj melalj - 5 months ago 18
Ruby Question

connect with email OR phone number with devise

I'm looking to allow users to connect to their account with their email or their phone number. I have checked that we can change authentication_keys on devise settings, but it's an "and" method instead of an "or".

Any idea?

Answer

Please refer to the below article for details

How To: Allow users to sign in using their username or email address

You can simulate your application in the similar way on phone number or email. I just saved myself from repeating the whole process from article.

Comments