From a4bd889d236f830a1b5599daed65f38a0cddefce Mon Sep 17 00:00:00 2001 From: Paul Couture Date: Sat, 16 Dec 2023 15:51:30 +0000 Subject: [PATCH] fix: modifying profile edit pages, added trusted proxies --- site/app/Http/Middleware/TrustProxies.php | 2 +- site/resources/views/layouts/app.blade.php | 45 ++++++++++++--------- site/resources/views/profile/edit.blade.php | 8 ++-- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/site/app/Http/Middleware/TrustProxies.php b/site/app/Http/Middleware/TrustProxies.php index 3391630..559dd2f 100644 --- a/site/app/Http/Middleware/TrustProxies.php +++ b/site/app/Http/Middleware/TrustProxies.php @@ -12,7 +12,7 @@ class TrustProxies extends Middleware * * @var array|string|null */ - protected $proxies; + protected $proxies = '*'; /** * The headers that should be used to detect proxies. diff --git a/site/resources/views/layouts/app.blade.php b/site/resources/views/layouts/app.blade.php index 9069c10..69da412 100644 --- a/site/resources/views/layouts/app.blade.php +++ b/site/resources/views/layouts/app.blade.php @@ -1,26 +1,30 @@ - - - - - - +@extends('layouts.master') - {{ config('app.name', 'Laravel') }} +@section('page-title', 'Manage Account') - - - - - - @vite(['resources/css/app.css', 'resources/js/app.js']) - - -
- @include('layouts.navigation') +@section('page-top') +
+
+
+

Manage Account

+ +
+
+
+@endsection +@section('page-content') + +@endsection diff --git a/site/resources/views/profile/edit.blade.php b/site/resources/views/profile/edit.blade.php index 5fcdd33..4125e35 100644 --- a/site/resources/views/profile/edit.blade.php +++ b/site/resources/views/profile/edit.blade.php @@ -1,25 +1,25 @@

- {{ __('Profile') }} + {{ __('Manage') }}

-
+
@include('profile.partials.update-profile-information-form')
-
+
@include('profile.partials.update-password-form')
- {{--
+ {{--
@include('profile.partials.delete-user-form')