Skip to content

Commit 554dedb

Browse files
committed
prevent email if no twilio_totp available
1 parent 83355a8 commit 554dedb

File tree

1 file changed

+3
-0
lines changed
  • core/components/twilio/src/Processors/TOTP

1 file changed

+3
-0
lines changed

core/components/twilio/src/Processors/TOTP/Email.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public function handleUser($id): bool
3232
}
3333
$profile = $user->getOne('Profile');
3434
$extended = $profile->get('extended');
35+
if (!isset($extended['twilio_totp'])) {
36+
return false;
37+
}
3538
$userTwilio = $extended['twilio_totp'];
3639
$uri = $userTwilio['binding']['uri'];
3740
$qr = 'https://chart.googleapis.com/chart?chs=200x200&chld=M|0&cht=qr&chl=' . urlencode($uri);

0 commit comments

Comments
 (0)