mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
User Twilio API to verify phone numbers
This commit is contained in:
parent
e3b37edb4d
commit
3387651d7a
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace App\Observers;
|
namespace App\Observers;
|
||||||
|
|
||||||
|
use App\Jobs\User\VerifyPhone;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Utils\Ninja;
|
use App\Utils\Ninja;
|
||||||
|
|
||||||
@ -25,7 +26,7 @@ class UserObserver
|
|||||||
public function created(User $user)
|
public function created(User $user)
|
||||||
{
|
{
|
||||||
if (Ninja::isHosted() && isset($user->phone)) {
|
if (Ninja::isHosted() && isset($user->phone)) {
|
||||||
|
VerifyPhone::dispatch($user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ class UserObserver
|
|||||||
public function updated(User $user)
|
public function updated(User $user)
|
||||||
{
|
{
|
||||||
if (Ninja::isHosted() && $user->isDirty('phone')) {
|
if (Ninja::isHosted() && $user->isDirty('phone')) {
|
||||||
|
VerifyPhone::dispatch($user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user