Skip to content

Commit 071abc5

Browse files
author
SSOfy
committed
OTPRepository fix
1 parent 7168e37 commit 071abc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Repositories/OTPRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function findAllByAction($userId, $action, $ip = null)
4040

4141
$options = [];
4242

43-
if (!empty($user->email)) {
43+
if (!is_null($user->email)) {
4444
$options[] = $this->generateEmailOtpOption($action, $user);
4545
}
4646

47-
if (!empty($user->phone)) {
47+
if (!is_null($user->phone)) {
4848
$options[] = $this->generateSMSOtpOption($action, $user);
4949
}
5050

0 commit comments

Comments
 (0)