Skip to content

Latest commit

Β 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Secure Login System with Role-Based Access

This is a full-stack login and registration system built using Spring Boot (Java) for the backend and React.js for the frontend. It includes authentication via JWT, role-based access control (User/Admin), secure password storage, and password history tracking.


πŸ“Œ Features

  • πŸ” JWT-Based Authentication: Protects secure endpoints using JSON Web Tokens.
  • πŸ‘₯ Role-Based Access Control: Users can register as either ROLE_USER or ROLE_ADMIN.
  • πŸ“ Password Policy Enforcement:
    • Must contain at least one digit.
    • Must contain at least one uppercase letter.
  • πŸ“š Password History Tracking:
    • The last 3 passwords are stored to prevent reuse.
  • ⏰ Time Slot Configuration:
    • Admins can define configurable values like time limits.
  • 🚫 Change Password on First Login:
    • Users can be flagged to change passwords upon their first login.

πŸ§ͺ Tech Stack

Backend

  • Java 17
  • Spring Boot
  • Spring Security
  • JPA / Hibernate
  • H2 / MySQL (configurable)
  • JWT for secure authentication

Frontend

  • React.js
  • Axios for HTTP calls
  • React Router for navigation

πŸš€ Running the Application

Prerequisites

  • Java 17+
  • Node.js 16+
  • Maven

Backend Setup

cd backend
mvn clean install
mvn spring-boot:run

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages