[JITERA] Implement Login Form
Created by: chi-jitera
Overview
This pull request introduces a new login form to the project, allowing users to enter their username and password to authenticate. The implementation includes both the HTML structure and the necessary JavaScript functionality to handle form submissions and user interactions.
Changes
-
HTML (login.html):
- Created a new HTML file for the login form located at
/gateway/src/main/resources/static/login.html. - The form includes input fields for username and password, a login button, and a "Forgot password?" link.
- Styled the form using inline CSS to match the project's existing design conventions.
- Created a new HTML file for the login form located at
-
JavaScript (login.js):
- Added a new JavaScript file located at
/gateway/src/main/resources/static/js/login.js. - Implemented the login functionality, including:
- Form validation to ensure the username and password meet minimum length requirements.
- AJAX requests to handle login submissions and manage user sessions.
- Functions for handling user interactions, such as login, logout, and demo account access.
- Added visual effects for the login form to enhance user experience.
- Added a new JavaScript file located at
This implementation is designed to integrate seamlessly with the existing project structure and follows the established coding standards.