Skip to content

Commit

Permalink
Fix exception error message to use config value (#61)
Browse files Browse the repository at this point in the history
* Fix config publish typo

* Throw exception on invalid/expired signature

* Updated readme with exception changes

* Updated readme with exception changes

* Clean useless files

* Make this a non breaking-change

* Use config message for exception

* Use config message for exception
  • Loading branch information
JhumanJ authored Jan 13, 2021
1 parent 6a8b68e commit bc25e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/ExpiredSignatureException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class ExpiredSignatureException extends Exception
{
public function __construct()
{
parent::__construct(401, 'Invalid signature.');
parent::__construct(401, config('laravel-passwordless-login.invalid_signature_message'));
}
}
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidSignatureException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class InvalidSignatureException extends Exception
{
public function __construct()
{
parent::__construct(401, 'Invalid signature.');
parent::__construct(401, config('laravel-passwordless-login.invalid_signature_message'));
}
}

0 comments on commit bc25e7b

Please sign in to comment.