From 030deb8f06ab542c7c19a89f5803e7745f0bdf40 Mon Sep 17 00:00:00 2001 From: ttimot24 Date: Tue, 22 Oct 2024 15:59:28 +0200 Subject: [PATCH 1/5] Skeleton login page --- app/View/auth/login2.blade.php | 76 ++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 app/View/auth/login2.blade.php diff --git a/app/View/auth/login2.blade.php b/app/View/auth/login2.blade.php new file mode 100644 index 00000000..31cd6b75 --- /dev/null +++ b/app/View/auth/login2.blade.php @@ -0,0 +1,76 @@ +@extends('layout', [ + 'title' => 'Welcome' +]) + +
+
+
+
+
+

Welcome!

+ BootstrapBrain Logo +

+
+
+
+
+
+
+
+
+
+

Log in

+
+
+
+
+
+
+ + + @error('username') + + {{ $errors->first('username') }} + + @enderror +
+
+ + + @error('password') + + {{ $errors->first('password') }} + + @enderror +
+
+
+ + +
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
\ No newline at end of file From 58098029f470710c4f8dd87850dac7c222acecc4 Mon Sep 17 00:00:00 2001 From: ttimot24 Date: Tue, 22 Oct 2024 17:14:13 +0200 Subject: [PATCH 2/5] Show random stock images on login --- app/Controllers/Auth/LoginController.php | 2 +- app/Providers/EventServiceProvider.php | 4 ---- app/View/auth/login2.blade.php | 14 +++++++------- app/View/media/header_images.blade.php | 2 +- package-lock.json | 18 ++++++++++++++++++ package.json | 1 + routes/api.php | 4 ++++ 7 files changed, 32 insertions(+), 13 deletions(-) diff --git a/app/Controllers/Auth/LoginController.php b/app/Controllers/Auth/LoginController.php index ff93f1eb..47c929fa 100644 --- a/app/Controllers/Auth/LoginController.php +++ b/app/Controllers/Auth/LoginController.php @@ -48,7 +48,7 @@ public function redirectTo() public function username() { - return 'username'; + return 'email'; } diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index b77a2785..e106f4e9 100644 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -13,10 +13,6 @@ class EventServiceProvider extends ServiceProvider * @var array */ protected $listen = [ - 'App\Events\SomeEvent' => [ - 'App\Listeners\EventListener', - ], - 'Illuminate\Auth\Events\Login' => [ '\App\Listeners\UserEventListener@countLogin', ], diff --git a/app/View/auth/login2.blade.php b/app/View/auth/login2.blade.php index 31cd6b75..d01ac76a 100644 --- a/app/View/auth/login2.blade.php +++ b/app/View/auth/login2.blade.php @@ -4,32 +4,32 @@
-
+
-

Welcome!

- BootstrapBrain Logo +

Welcome!

+

-
+
-

Log in

+

Log in

+ @csrf
+ id='email' name='email' placeholder="{{ trans('login.enter_username') }}" required> @error('username') {{ $errors->first('username') }} diff --git a/app/View/media/header_images.blade.php b/app/View/media/header_images.blade.php index 37d8beeb..d85bb0cf 100644 --- a/app/View/media/header_images.blade.php +++ b/app/View/media/header_images.blade.php @@ -277,7 +277,7 @@ class='btn btn-primary'>{{ trans('actions.save') }}