From e95797bb976614411a25a652319d7d199f746e60 Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Tue, 17 Sep 2024 13:13:36 +0500 Subject: [PATCH] wip --- app/Modules/ApiAuth/Controllers/ApiAuthController.php | 2 +- app/Modules/ApiAuth/Requests/AuthLoginRequest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Modules/ApiAuth/Controllers/ApiAuthController.php b/app/Modules/ApiAuth/Controllers/ApiAuthController.php index 756973b..6ef6a86 100644 --- a/app/Modules/ApiAuth/Controllers/ApiAuthController.php +++ b/app/Modules/ApiAuth/Controllers/ApiAuthController.php @@ -37,7 +37,7 @@ class ApiAuthController extends Controller if (! $user || ! Hash::check($request->password, $user->password)) { throw ValidationException::withMessages([ - 'email' => ['The provided credentials are incorrect.'], + 'incorrect' => ['The provided credentials are incorrect.'], ]); } diff --git a/app/Modules/ApiAuth/Requests/AuthLoginRequest.php b/app/Modules/ApiAuth/Requests/AuthLoginRequest.php index cad969a..233f904 100644 --- a/app/Modules/ApiAuth/Requests/AuthLoginRequest.php +++ b/app/Modules/ApiAuth/Requests/AuthLoginRequest.php @@ -17,7 +17,6 @@ class AuthLoginRequest extends FormRequest /** * Phone number to authenticate * - * @var int * @example 65707012 */ 'phone' => ['required', 'integer', 'between:61000000,71999999'],