shadowofleaf96 / GreenVille

GreenVille - Bio Organic Ecommerce Website
https://greenville-frontend.onrender.com/
1 stars 1 forks source link

Add New User Page #68

Closed shadowofleaf96 closed 2 weeks ago

shadowofleaf96 commented 9 months ago

The "Add New User" page is a vital component of the back-office system, allowing administrators to seamlessly create and incorporate new users into the e-commerce platform. This page streamlines the process, ensuring that necessary details are collected accurately for effective user management.

User Details Form: Description: A clear and user-friendly form collecting essential information such as username, email, password, and role. Why it Matters: Simplifies the user creation process by systematically gathering the required details. Role Selection: Description: An option to select the role of the new user, defining their permissions and responsibilities within the system. Why it Matters: Ensures proper categorization and access control for each user. Only users with admin role can create new user accounts. Password Setup: Description: A secure and straightforward mechanism for setting up a password for the new user. Why it Matters: Enhances security by allowing administrators to enforce strong password policies. Email Notification Option: Description: An optional checkbox to send an email notification to the new user with login credentials and onboarding information. Why it Matters: Enhances user experience by providing necessary information for a smooth onboarding process.

User Details Form: All fields in the user details form are clearly labeled. The form validates user inputs, ensuring accuracy and completeness. All the needed information is listed in the users API. Role Selection: The role selection dropdown includes all available roles with clear descriptions. The selected role is accurately associated with the new user. Password Setup: The password setup enforces security measures such as minimum length and complexity requirements, max length is set to 8 characters. Passwords are securely stored using industry-standard encryption (MD5) Email Notification Option: Checking the email notification option triggers the sending of an email to the new user. The email includes relevant details like username, temporary password, and onboarding instructions. Make any move interactive: Show a green success alert when a new user is created. Show an orange warning alert if errors like duplicated entries is detected. Show a red error alert when server errors occur.