Closed gabrielvaca closed 7 months ago
Objective: Create a log system for administrator user logins that saves the information in a .txt file.
.txt
Requirements:
Implementation of Logging Middleware:
role
isAdmin
File Handling with Node.js:
fs
Security and Data Validation:
Acceptance Criteria:
Issue: Implementation of Login Logs for Administrator Users
Objective: Create a log system for administrator user logins that saves the information in a
.txt
file.Requirements:
Implementation of Logging Middleware:
role
orisAdmin
..txt
file.File Handling with Node.js:
fs
module of Node.js to manage file operations..txt
file is opened in append mode to not overwrite existing records.Security and Data Validation:
Acceptance Criteria:
.txt
file..txt
file contains the correct information about each login without overwriting previous records.