1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Update app/controllers/api/account.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Eldad A. Fux 2022-08-15 11:30:58 +03:00 committed by GitHub
parent 6f74c565e8
commit 72e524963c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2279,7 +2279,7 @@ App::post('/v1/account/verification/phone')
->action(function (Request $request, Response $response, Document $user, Database $dbForProject, Audit $audits, Event $events, Stats $usage, EventPhone $messaging) {
if (empty(App::getEnv('_APP_SMS_PROVIDER'))) {
throw new Exception('Phone provider not configured', 503, Exception::GENERAL_PHONE_DISABLED);
throw new Exception(Exception::GENERAL_PHONE_DISABLED);
}
if (empty($user->getAttribute('phone'))) {