From a24338d922f63fb07569a0974646c82a432f3b21 Mon Sep 17 00:00:00 2001
From: jpie02 <128189069+jpie02@users.noreply.github.com>
Date: Tue, 23 Sep 2025 14:08:47 +0200
Subject: [PATCH 1/3] Extend the input size limit on login and register
email/username and password fields to 50.
---
web_app/src/Librarian/LibrarianLogin.tsx | 4 ++--
web_app/src/Librarian/LibrarianSettings.tsx | 2 +-
web_app/src/LibraryAdmin/LibraryAdminLogin.tsx | 4 ++--
web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx | 10 +++++-----
web_app/src/SystemAdmin/SystemAdminLogin.tsx | 4 ++--
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/web_app/src/Librarian/LibrarianLogin.tsx b/web_app/src/Librarian/LibrarianLogin.tsx
index 245adf7c..30dc4e24 100644
--- a/web_app/src/Librarian/LibrarianLogin.tsx
+++ b/web_app/src/Librarian/LibrarianLogin.tsx
@@ -159,7 +159,7 @@ const LibrarianLogin: React.FC = () => {
value={username}
onChange={handleInputChange}
required
- maxLength={25}
+ maxLength={50}
className="p-2 border rounded-md w-full"
/>
@@ -191,7 +191,7 @@ const LibrarianLogin: React.FC = () => {
value={password}
onChange={handleInputChange}
required
- maxLength={25}
+ maxLength={50}
className="p-2 border rounded-md w-full"
/>
diff --git a/web_app/src/Librarian/LibrarianSettings.tsx b/web_app/src/Librarian/LibrarianSettings.tsx
index db863552..dfa4a689 100644
--- a/web_app/src/Librarian/LibrarianSettings.tsx
+++ b/web_app/src/Librarian/LibrarianSettings.tsx
@@ -141,7 +141,7 @@ const LibrarianSettings: React.FC = () => {
/>
-
{/* ✅ NEW FIELD */}
+
{
value={email}
onChange={handleInputChange}
required
- maxLength={25}
+ maxLength={50}
className={`peer p-2 border rounded-md w-full ${!emailValid ? 'border-red-600' : 'border-gray-300'}`}
/>
@@ -203,7 +203,7 @@ const LibraryAdminLogin: React.FC = () => {
value={password}
onChange={handleInputChange}
required
- maxLength={25}
+ maxLength={50}
className="peer p-2 border rounded-md w-full"
/>
diff --git a/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx b/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx
index f9484309..c36ea486 100644
--- a/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx
+++ b/web_app/src/LibraryAdmin/LibraryAdminRegisterForm.tsx
@@ -150,7 +150,7 @@ const RegistrationForm: React.FC = () => {
name="firstName"
value={formData.firstName}
onChange={handleInputChange}
- maxLength={25}
+ maxLength={50}
required
className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]"
/>
@@ -163,7 +163,7 @@ const RegistrationForm: React.FC = () => {
name="lastName"
value={formData.lastName}
onChange={handleInputChange}
- maxLength={25}
+ maxLength={50}
required
className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]"
/>
@@ -176,7 +176,7 @@ const RegistrationForm: React.FC = () => {
name="email"
value={formData.email}
onChange={handleInputChange}
- maxLength={25}
+ maxLength={50}
required
className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]"
/>
@@ -189,7 +189,7 @@ const RegistrationForm: React.FC = () => {
name="password"
value={formData.password}
onChange={handleInputChange}
- maxLength={25}
+ maxLength={50}
required
className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]"
/>
@@ -202,7 +202,7 @@ const RegistrationForm: React.FC = () => {
name="confirm_password"
value={formData.confirm_password}
onChange={handleInputChange}
- maxLength={25}
+ maxLength={50}
required
className="bg-gray-100 w-full p-3 rounded-md text-gray-800 border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#3B576C]"
/>
diff --git a/web_app/src/SystemAdmin/SystemAdminLogin.tsx b/web_app/src/SystemAdmin/SystemAdminLogin.tsx
index 6dd50cae..176a7a35 100644
--- a/web_app/src/SystemAdmin/SystemAdminLogin.tsx
+++ b/web_app/src/SystemAdmin/SystemAdminLogin.tsx
@@ -169,7 +169,7 @@ const SysAdminLogin: React.FC = () => {
value={email}
onChange={handleInputChange}
required
- maxLength={25}
+ maxLength={50}
className={`peer p-2 border rounded-md w-full ${
!emailValid ? 'border-red-500' : 'border-gray-300'
}`}
@@ -187,7 +187,7 @@ const SysAdminLogin: React.FC = () => {
value={password}
onChange={handleInputChange}
required
- maxLength={25}
+ maxLength={50}
className="peer p-2 border border-gray-300 rounded-md w-full"
/>
From dc62406dc973475f7f1312ca2e1ae530a690a48b Mon Sep 17 00:00:00 2001
From: jpie02 <128189069+jpie02@users.noreply.github.com>
Date: Tue, 23 Sep 2025 14:28:26 +0200
Subject: [PATCH 2/3] Background color change on LegalInfoPage.tsx,
ProcessingInfoPage.tsx, UserManualPage.tsx and ContactInfoPage.tsx.
---
web_app/src/Utils/ContactInfoPage.tsx | 2 +-
web_app/src/Utils/LegalInfoPage.tsx | 4 ++--
web_app/src/Utils/ProcessingInfoPage.tsx | 2 +-
web_app/src/Utils/UserManualPage.tsx | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/web_app/src/Utils/ContactInfoPage.tsx b/web_app/src/Utils/ContactInfoPage.tsx
index b40bd974..14c4cf0d 100644
--- a/web_app/src/Utils/ContactInfoPage.tsx
+++ b/web_app/src/Utils/ContactInfoPage.tsx
@@ -3,7 +3,7 @@ import {Link} from "react-router-dom";
export const ContactInfoPage: React.FC = () => {
return (
-