From 375561f09dd17339efdcd62f47ed35224ce77a86 Mon Sep 17 00:00:00 2001 From: Tyler Lightwood Date: Thu, 8 Feb 2024 13:01:10 +0000 Subject: [PATCH 1/3] Updated ADMIN dashboard to require SudoAdmin - This was an oversight, but users now have to verify their ADMIN account login before accessing anything sensitive --- README.md | 6 ++++++ user_management.py | 8 ++++++++ 2 files changed, 14 insertions(+) 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/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) ") From fd470d60c901c9fe80291ecb47ca47dddf4993d2 Mon Sep 17 00:00:00 2001 From: Tyler Lightwood Date: Thu, 8 Feb 2024 13:02:38 +0000 Subject: [PATCH 2/3] Update SECURITY.md --- SECURITY.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SECURITY.md b/SECURITY.md index 87cdf98..aed6898 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -7,6 +7,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: | From 623fb2bcdc736fbade735c9cf39b4625ce40fe14 Mon Sep 17 00:00:00 2001 From: Tyler Lightwood Date: Thu, 8 Feb 2024 13:02:46 +0000 Subject: [PATCH 3/3] Update SECURITY.md --- SECURITY.md | 1 - 1 file changed, 1 deletion(-) diff --git a/SECURITY.md b/SECURITY.md index aed6898..0640b93 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,7 +6,6 @@ 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: |