Skip to content

Refactor: Centralized API Architecture & HTML5 Form Validation (#35, #36)#42

Open
Debangana-Dutta wants to merge 1 commit into
AditixAnand:mainfrom
Debangana-Dutta:main
Open

Refactor: Centralized API Architecture & HTML5 Form Validation (#35, #36)#42
Debangana-Dutta wants to merge 1 commit into
AditixAnand:mainfrom
Debangana-Dutta:main

Conversation

@Debangana-Dutta
Copy link
Copy Markdown

@Debangana-Dutta Debangana-Dutta commented May 17, 2026

This Pull Request addresses the issue where login and registration forms allowed empty submissions, potentially leading to unnecessary backend errors.

Changes made:

Added the required attribute to all input fields in login.html and register.html.

Ensured the email input field uses type="email" to provide immediate client-side validation and a better user experience.

Integrated a centralized API configuration via scripts/api_config.js to standardize backend communication across the authentication module.

Related Issues: > Fixes #35, Fixes #36

@Debangana-Dutta Debangana-Dutta changed the title Fix: Add HTML5 validation to login and registration forms #36 Refactor: Centralized API Architecture & HTML5 Form Validation (#35, #36) May 17, 2026
@Debangana-Dutta
Copy link
Copy Markdown
Author

Hi , @AditixAnand i have implemented a centralized API configuration (#35) and added form validation (#36). I've updated all relevant modules (Chatbot, Admin, Auth) to follow this new architecture. I would appreciate it if you could review this for an Advanced label. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Add HTML5 validation to login and registration forms [UX/BUG]: Standardize Backend API URL for easier local setup

1 participant