Answer the question
In order to leave comments, you need to log in
Authorization in Wordpress by phone instead of mail?
Hello. Please tell me who faced. There is a task to remove the mandatory indication of mail in WordPress, leaving only the phone number, username and password mandatory. To verify the account through some kind of SMS gateway.
Answer the question
In order to leave comments, you need to log in
In order to make such an authorization, we need, firstly, to identify the user. We can do this by id, login, nicename or email. We cannot influence the id, only these three remain. You need to write down the phone in one of these values, and then get the user.
For example, you can write a phone number in an email - write the number before the @ sign, anything after the sign, you can use the website address.
But you can go broke on text messages, they cost about 2 rubles apiece.
https://ru.wordpress.org/plugins/login-with-phone-... - free OTP plugin, you can finish it for yourself.
Article how to make authorization through mail, login or phone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question