mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
feat: add update and verification method for account and users
This commit is contained in:
1 parent
8ce669da6f
commit
dc25883685
8 files changed
+607
-148
No files matched your search
@@ -32,7 +32,7 @@ class Phone extends Validator
|
||||
*/
|
||||
public function isValid($value): bool
|
||||
{
|
||||
return !!\preg_match('/^\+[1-9]\d{1,14}$/', $value);
|
||||
return is_string($value) && !!\preg_match('/^\+[1-9]\d{1,14}$/', $value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user