From 9fdaa92bd1ea23c53f408c39f15d9d008c3fb4fe Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Wed, 29 Jun 2022 01:04:08 +0200 Subject: [PATCH] feat: trigger sms for createVerification --- app/controllers/api/account.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index f61490b116..5144441a1f 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2301,7 +2301,9 @@ App::post('/v1/account/verification/phone') $messaging ->setRecipient($user->getAttribute('phone')) - ->setMessage($secret); + ->setMessage($secret) + ->trigger() + ; $events ->setParam('userId', $user->getId())