solving freedcamp issues and bugs

This commit is contained in:
Ritikesh yadav
2024-04-15 19:18:22 +05:30
parent 2953c72796
commit 3f6b3aecad
7 changed files with 332 additions and 198 deletions

View File

@@ -466,7 +466,10 @@ class AuthController extends Controller
if ($validationMessage) {
return response()->json(['status' => 400, 'message' => $validationMessage], 400);
}
if(strlen($request->otp) < 4)
{
return response()->json(['status' => 401, 'message' => 'Please enter 4 digit OTP']);
}
$otp = (int) $request->otp;
if (Session::has('user-registration')) {
// $user = Session::get('user-registration');
@@ -915,7 +918,10 @@ class AuthController extends Controller
if ($validationMessage) {
return response()->json(['status' => 400, 'message' => $validationMessage], 400);
}
if(strlen($request->otp) < 4)
{
return response()->json(['status' => 401, 'message' => 'Please enter 4 digit OTP']);
}
$otp = (int) $request->otp;
if (Session::has('user-registration')) {
$userDetails = Session::get('user-registration');