Status code set to 400

This commit is contained in:
2025-06-19 19:20:41 +05:30
parent cc321aebe8
commit ea3ff7a45d
3 changed files with 6 additions and 5 deletions

View File

@@ -216,7 +216,7 @@ class UsersController extends Controller
$userEmailExist = User::where('email', $request->email)->first();
if ($userEmailExist) {
return jsonResponseWithErrorMessage('Email already exists', 400);
return response()->json(['status' => 'error','message' => 'Email already exists'],400);
}
// Generate UUID for the user