Open tmuras opened 3 years ago
The phone validation is not correct for many countries:
var phoneno = /^\d{10}$/; if (phoneno.test(phone)) {
For example in Poland and Ireland it's 9 digits for the mobile phone.
Similar assumption is done here:
public function user_login($username, $password) { global $DB; $username = substr($username, -10);
I suggest using the libphonenumber library from Google to validate this.
The phone validation is not correct for many countries:
For example in Poland and Ireland it's 9 digits for the mobile phone.
Similar assumption is done here: