Status set to 400

This commit is contained in:
2025-06-19 17:31:24 +05:30
parent 1e2043aeac
commit cc321aebe8
3 changed files with 5 additions and 6 deletions

View File

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