From bb19166a7542280da2d0d84f9d1e3a2332b947f0 Mon Sep 17 00:00:00 2001 From: Hamza Bham <92208535+MHamzaBham@users.noreply.github.com> Date: Wed, 8 Jan 2025 00:59:17 +0500 Subject: [PATCH] Error messages on login and signup --- resources/views/auth/login.blade.php | 73 ++++++++++--------- resources/views/auth/register.blade.php | 93 +++++++++++++++---------- 2 files changed, 95 insertions(+), 71 deletions(-) diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 1f4a51a..9e5a8e8 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -5,53 +5,58 @@
@csrf -
-
-
-
-

Sign In

-

Enter your email and password to sign in

-
-
- +
+
+
+
+

Sign In

+

Enter your email and password to sign in

+
+
+ @if ($errors->has('email') || $errors->has('password')) +
+ Invalid credentials. Please try again. +
+ @endif
- +
-
- +
+
- -
- +
-
-
- pattern-lines -
- + class="col-6 d-lg-flex d-none h-100 my-auto pe-0 position-absolute top-0 end-0 text-center justify-content-center flex-column"> +
+ pattern-lines +
+ +
+

"Your Journey to Endless Financial Possibilities Begins Here!"

+

Stay organized, stay informed, and make decisions that empower you.

-

"Your Journey to Endless Financial Possibilities Begins Here!"

-

Stay organized, stay informed, and make decisions that empower you.

-
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 9786fdb..b7355bf 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -5,61 +5,80 @@
@csrf -
-
-
-
-

Register

-

Enter your details to register

-
-
- +
+
+
+
+

Register

+

Enter your details to register

+
+
+
- + + @error('name') + {{ $message }} + @enderror
+
- + + @error('email') + {{ $message }} + @enderror
+
- + + @error('password') + {{ $message }} + @enderror
+
- + + @error('password_confirmation') + {{ $message }} + @enderror
+
- -
- +
-
-
- pattern-lines -
- + class="col-6 d-lg-flex d-none h-100 my-auto pe-0 position-absolute top-0 end-0 text-center justify-content-center flex-column"> +
+ pattern-lines +
+ +
+

"Your Journey to Endless Financial Possibilities Begins Here!"

+

Stay organized, stay informed, and make decisions that empower you.

-

"Your Journey to Endless Financial Possibilities Begins Here!"

-

Stay organized, stay informed, and make decisions that empower you.

-