Skip to content

Commit 5c77c9b

Browse files
committed
Fix mis-merges from rebasing this up from develop
1 parent 0b7ea53 commit 5c77c9b

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

app/Http/Controllers/Api/UsersController.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,11 +475,7 @@ public function update(SaveUserRequest $request, User $user): JsonResponse
475475
$user->password = bcrypt($request->input('password'));
476476
}
477477

478-
app('App\Http\Requests\ImageUploadRequest')->handleImages($user, 600, 'image', 'avatars', 'avatar');
479-
480-
$user->customFill($request,Auth::user());
481-
482-
if ($user->save()) {
478+
$user->customFill($request, Auth::user());
483479

484480
// We need to use has() instead of filled()
485481
// here because we need to overwrite permissions

app/Providers/AuthServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function boot()
8787
]);
8888

8989
$this->registerPolicies();
90+
//Passport::routes(); //this is no longer required in newer passport versions
9091
Passport::tokensExpireIn(Carbon::now()->addYears(config('passport.expiration_years')));
9192
Passport::refreshTokensExpireIn(Carbon::now()->addYears(config('passport.expiration_years')));
9293
Passport::personalAccessTokensExpireIn(Carbon::now()->addYears(config('passport.expiration_years')));

config/trustedproxy.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
use Illuminate\Http\Request;
4-
53
/*
64
|--------------------------------------------------------------------------
75
| DO NOT EDIT THIS FILE DIRECTLY.
@@ -59,9 +57,6 @@
5957
*
6058
* @link https://symfony.com/doc/current/deployment/proxies.html
6159
*/
62-
'headers' => Request::HEADER_X_FORWARDED_FOR |
63-
Request::HEADER_X_FORWARDED_HOST |
64-
Request::HEADER_X_FORWARDED_PORT |
65-
Request::HEADER_X_FORWARDED_PROTO |
66-
Request::HEADER_X_FORWARDED_AWS_ELB,
60+
// 'headers' => Illuminate\Http\Request::HEADER_X_FORWARDED_ALL, //this is mostly handled already
61+
6762
];

0 commit comments

Comments
 (0)