mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
send phone invite only if email is empty
This commit is contained in:
1 parent
34b2280207
commit
a2642ecc67
1 file changed
+1
-3
@@ -475,9 +475,7 @@ App::post('/v1/teams/:teamId/memberships')
|
||||
->setUser($user)
|
||||
->trigger()
|
||||
;
|
||||
}
|
||||
|
||||
if (!empty($phone)) {
|
||||
} else if (!empty($phone)) {
|
||||
$messaging
|
||||
->setRecipient($phone)
|
||||
->setMessage($url)
|
||||
|
||||
Reference in new issue
Block a user