melalj melalj - 1 year ago 117
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download