Fixed #3974 (Validation Message Shown now)

This commit is contained in:
JunaidJaved8461 2020-10-06 11:30:07 +05:00 committed by GitHub
parent bee024ad2f
commit 340f51cd63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -115,11 +115,11 @@ class SessionController extends Controller
$data['password'] = bcrypt($data['password']);
}
$this->customerRepository->update($data, $customer->id);
$customerRepository->update($data, $customer->id);
return response()->json([
'message' => 'Your account has been created successfully.',
'data' => new CustomerResource($this->customerRepository->find($customer->id)),
'message' => 'Your account has been updated successfully.',
'data' => new CustomerResource($customerRepository->find($customer->id)),
]);
}
@ -136,4 +136,4 @@ class SessionController extends Controller
'message' => 'Logged out successfully.',
]);
}
}
}