@Frosticek
Oops, I tested a bit and indeed, this is a big one.
The problem with using the
Phone Number Login Plugin is that in it's current form it's a bit unreliable and doesn't let you re-validate a number (maybe you want to create a different account and use the same phone number as you used in another account).
As the guy stated above, the validation should be performed by the
SMS Notification and Verification, because this is the actual purpose of the plugin.
So a function should be added to check if the
phone already exists in any of the user accounts (both fields:
mobile and
land) and if true, require a re-validation.
There's no need to get the email involved, just the phone number uniqueness check is enough.
But yeah, it's important to make sure that if
User Account 1 is
verified and
User Account 2 re-validates the same number successfully, then
User Account 1 should become
unverified.
And if
User Account 1 logs in and successfully re-validates the same number, then
User Account 2 becomes unverified, and so on.
**The above applies to a user that tries to create multiple accounts with the same phone number.**Basically it's a game of checking for duplicates, and if found, prompt for the validation check.
So if I post listings from my SMS verified account, and a hacker wants to steal my identity, he can't as he needs to enter the code that's sent to my number.
If you won't fix it, at least make a note on the product page, that for this plugin to work 90%, it also needs the
Phone Number Login Plugin.
It's only 90% because the re-validation feature is missing, and in this case the
Phone Number Login Plugin is just a band-aid so that your identity can't be stolen.
Thanks!