Skip to content

Commit

Permalink
Fixes exception.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 28, 2019
1 parent 955311f commit d0d8f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/One/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Laravie\Codex\Concerns\Request\Json;
use Laravie\Codex\Concerns\Request\Multipart;
use Laravie\Codex\Contracts\Response;
use Laravie\Codex\Exceptions\UnauthorizedHttpException;
use Laravie\Codex\Exceptions\UnauthorizedException;

class Profile extends Request
{
Expand Down Expand Up @@ -62,7 +62,7 @@ public function verifyPassword(string $password): bool
$this->getApiHeaders(),
$this->mergeApiBody(compact('password'))
);
} catch (UnauthorizedHttpException $e) {
} catch (UnauthorizedException $e) {
return false;
}

Expand Down

0 comments on commit d0d8f77

Please sign in to comment.