mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-22 02:50:35 +02:00
Enhance QR code reading & return more relevant error msg - Fixes #244
This commit is contained in:
@@ -45,7 +45,8 @@ class Handler extends ExceptionHandler
|
||||
|
||||
$this->renderable(function (InvalidQrCodeException $exception, $request) {
|
||||
return response()->json([
|
||||
'message' => 'not a valid QR code', ], 400);
|
||||
'message' => $exception->getMessage(),
|
||||
], 400);
|
||||
});
|
||||
|
||||
$this->renderable(function (InvalidSecretException $exception, $request) {
|
||||
|
Reference in New Issue
Block a user