Skip to content

Commit

Permalink
Fixes the return type and function accessibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
ichtrojan committed Jan 17, 2020
1 parent 6faff9f commit 3b0b155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Otp.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ protected function validate(string $identifier, string $token) : object
$otp->valid = false;
$otp->save();

return response()->json([
return (object)[
'status' => false,
'message' => 'OTP Expired'
]);
];
} else {
$otp->valid = false;
$otp->save();
Expand Down

0 comments on commit 3b0b155

Please sign in to comment.