Skip to content

Commit

Permalink
OTP issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Oct 21, 2024
1 parent 18e9b21 commit 73ab097
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
*/
'geoip' => [
'default' => env('PACKAGE_AUTH_GEOIP_DRIVER', null),
'whitelist' => ['0.0.0.0', 'localhost'],
'whitelist' => ['0.0.0.0', 'localhost', '192.168.10.115', '127.0.0.1'],
'drivers' => [
'local' => [
'class' => Local::class,
Expand Down
2 changes: 0 additions & 2 deletions src/Models/OneTimePin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
namespace Fintech\Auth\Models;

use Fintech\Core\Abstracts\BaseModel;
use Fintech\Core\Traits\BlameableTrait;
use OwenIt\Auditing\Contracts\Auditable;

class OneTimePin extends BaseModel implements Auditable
{
use \OwenIt\Auditing\Auditable;
use BlameableTrait;

/*
|--------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Repositories/Eloquent/OneTimePinRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function create(string $authField, string $token)
return $this->model;
}
} catch (Exception $exception) {
throw new Exception($exception->getMessage(), $exception->getCode(), $exception);
throw new Exception($exception->getMessage(), (int)$exception->getCode(), $exception);
}

return null;
Expand Down

0 comments on commit 73ab097

Please sign in to comment.