Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit daf6f56

Browse files
fix(user): fixed password issue
1 parent 60b9cba commit daf6f56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/Http/Controllers/UserController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ public function profileUpdate(UpdateUserProfileRequest $request)
191191
$input = $request->all();
192192
if (isset($input['password']) && !empty($input['password'])) {
193193
$input['password'] = Hash::make($input['password']);
194+
} else {
195+
unset($input['password']);
194196
}
195197
$this->userRepository->update($input, Auth::user()->id);
196198
return $this->sendSuccess('Profile updated successfully.');

0 commit comments

Comments
 (0)