Skip to content

Commit

Permalink
Bug fixes (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlight071 authored Feb 8, 2024
2 parents 6427162 + ef52432 commit b7ab8e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,4 @@ cython_debug/

# User Files
audit_log.txt
config.ini


config.ini
3 changes: 2 additions & 1 deletion admin_dashboard.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import time
import sys
from colorama import Fore, Style
from common_functions import clear_screen, log_action
from user_management import user_management
Expand Down Expand Up @@ -28,7 +29,7 @@ def admin_dashboard():
print("\nLogging out...")
log_action("ADMIN", "Logged Out")
time.sleep(2)
exit()
sys.exit()
else:
print(Fore.RED + "\nInvalid option. Please try again." + Style.RESET_ALL)
time.sleep(2)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ Werkzeug==3.0.1
wheel==0.42.0
whichcraft==0.6.1
zope.event==5.0
zope.interface==6.1
zope.interface==6.1
3 changes: 2 additions & 1 deletion sudo_user_login.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import time
import sys
import getpass
from common_functions import clear_screen, verify_password, log_action
from colorama import Fore, Style
Expand Down Expand Up @@ -51,7 +52,7 @@ def attempt_login(self, username, password, attempts):
return username
else:
self.print_insufficient_clearance(username)
exit()
sys.exit()
else:
self.print_incorrect_password(username, attempts)
else:
Expand Down

0 comments on commit b7ab8e1

Please sign in to comment.