Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vormkracht10/filament-two-factor-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 16, 2024
2 parents e2fa21e + 6b1e3be commit c243b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/filament-two-factor-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|
| This value determines which two factor authentication options are available.
| Simply add or remove the options you want to use.
|
|
| Available options: email, phone, authenticator
|
*/
Expand All @@ -27,7 +27,7 @@
|--------------------------------------------------------------------------
|
| This value determines which SMS service to use. For ready-to-use notification
| channels, you can check out the documentation (SMS) here:
| channels, you can check out the documentation (SMS) here:
| https://laravel-notification-channels.com/
|
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Notifications/SendOTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public function via(object $notifiable): array
}

if (
$notifiable->two_factor_type === TwoFactorType::phone &&
$notifiable->two_factor_type === TwoFactorType::phone &&
in_array(TwoFactorType::phone, config('filament-two-factor-auth.options'))
) {
return [config('filament-two-factor-auth.sms_service')];
}

return [];
}

Expand Down

0 comments on commit c243b06

Please sign in to comment.