fix customer email validation

This commit is contained in:
yogesh_gohil
2019-11-20 17:46:45 +05:30
parent 1e6372cbb1
commit 8b05909b74
3 changed files with 7 additions and 2 deletions

View File

@ -160,6 +160,7 @@ class CustomersController extends Controller
if ($verifyEmail) {
if ($verifyEmail->id !== $customer->id) {
return response()->json([
'success' => false,
'error' => 'Email already in use'
]);
}