fix: don't send email and password when updating a customer
This commit is contained in:
parent
a5bbbfdcef
commit
bbfba0bda1
2 changed files with 9 additions and 4 deletions
|
|
@ -58,9 +58,14 @@ class CustomerController extends Controller
|
|||
$customer->updateApiData(\array_merge(Arr::only(
|
||||
$request->validated(),
|
||||
[
|
||||
'firstname', 'lastname', 'birth_date', 'address',
|
||||
'country', 'city', 'phone',
|
||||
'email', 'password', 'opt_in',
|
||||
'firstname',
|
||||
'lastname',
|
||||
'birth_date',
|
||||
'address',
|
||||
'country',
|
||||
'city',
|
||||
'phone',
|
||||
'opt_in',
|
||||
]
|
||||
), ['postcode' => $request->input('postal_code')]));
|
||||
Session::flash('success', trans('Vos informations ont bien été mis à jour'));
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "uwil/gen-game-web",
|
||||
"version": "2.4.7",
|
||||
"version": "2.4.8",
|
||||
"type": "project",
|
||||
"description": "Game generator",
|
||||
"support": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue