This commit is contained in:
16
api/app/Exceptions/Externo/InvalidCredentialsException.php
Normal file
16
api/app/Exceptions/Externo/InvalidCredentialsException.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exceptions\Externo;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class InvalidCredentialsException extends Exception
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return response()->json([
|
||||
'message' => 'Usuário e/ou senha incorreto(s).'
|
||||
], Response::HTTP_UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user