diff --git a/README.md b/README.md index 80554c4..1e13600 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,12 @@ You can now use this MongoDB URI to connect to your MongoDB database from Nexus (You will set the password to your own on first login) +- To create a new user, go to User Management in the ADMIN Dashboard +- Go to Register New User +- Enter the desired username, password and user level. You can now log into the new user account. + +(For resetting forgotten passwords, from User Management, enter Update user information, log in via Sudo ADMIN and simply reset the password to **'password'**) + ## System Requirements 💻 Nexus Pet Portal is developed using Python. To run this application from the source code, you need: diff --git a/SECURITY.md b/SECURITY.md index 87cdf98..0640b93 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,7 +6,8 @@ Right now, only the latest release is being patched for security and performance | Version | Supported | | ------- | ------------------ | -| 0.4.x | :white_check_mark: | +| 0.5.x | :white_check_mark: | +| 0.4.x | :x: | | 0.3.x | :x: | | 0.2.x | :x: | | 0.1.x | :x: | diff --git a/user_management.py b/user_management.py index 34d5bfe..7676839 100644 --- a/user_management.py +++ b/user_management.py @@ -13,6 +13,8 @@ def user_management(): + + SudoAdmin(users_collection.database).login() # Continuous loop for user management options while True: clear_screen() @@ -100,6 +102,9 @@ def update_user_level(username): print(Fore.RED + "\nInvalid user level. Please enter a valid level." + Style.RESET_ALL) def update_user_information(): + + SudoAdmin(users_collection.database).login() + username = get_username() user = get_user(username) @@ -126,6 +131,9 @@ def update_user_information(): time.sleep(2) def delete_user(): + + SudoAdmin(users_collection.database).login() + # Prompt for username to be deleted username = input("\nEnter the username to delete: ") confirm_delete = input("Are you sure you want to delete this user? (y/n) ")