From e5e057a51a7438d9d3277ef3fdcd64ac16aaee48 Mon Sep 17 00:00:00 2001 From: Neerholt Date: Fri, 7 Aug 2020 08:51:05 +0200 Subject: [PATCH] v0.5.7a - Added middelware --- skolehjem/app/Http/Controllers/UserController.php | 2 +- skolehjem/resources/views/app/users/edit.blade.php | 2 +- skolehjem/resources/views/app/users/editpass.blade.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/skolehjem/app/Http/Controllers/UserController.php b/skolehjem/app/Http/Controllers/UserController.php index 50074f7..c2f563a 100644 --- a/skolehjem/app/Http/Controllers/UserController.php +++ b/skolehjem/app/Http/Controllers/UserController.php @@ -21,7 +21,7 @@ class UserController extends Controller { $this->middleware([ "auth" ])->only("logout"); $this->middleware([ "guest" ])->only("login"); - $this->middleware([ "lang" ])->except(["login", "showLogin"]); + $this->middleware([ "lang" ])->except(["login", "showLogin", "showForgot", "forgot"]); $this->middleware([ "check.auth:user.list" ])->only("index"); $this->middleware([ "check.auth:user.show" ])->only("show"); diff --git a/skolehjem/resources/views/app/users/edit.blade.php b/skolehjem/resources/views/app/users/edit.blade.php index 5d24194..f6f8f33 100644 --- a/skolehjem/resources/views/app/users/edit.blade.php +++ b/skolehjem/resources/views/app/users/edit.blade.php @@ -17,7 +17,7 @@ {{__('msg.telefon')}} Nr.: - {{__('msg.tilbage')}} + @endsection diff --git a/skolehjem/resources/views/app/users/editpass.blade.php b/skolehjem/resources/views/app/users/editpass.blade.php index a5c9559..ecc20d4 100644 --- a/skolehjem/resources/views/app/users/editpass.blade.php +++ b/skolehjem/resources/views/app/users/editpass.blade.php @@ -28,8 +28,9 @@ {!! session()->get('error#notsamepass') !!} {!! session()->get('error#oldpass') !!} + {{__('msg.tilbage')}} - {{__('msg.tilbage')}} +