From cc8e861859e689a9665df0ccaf5f23792be2210c Mon Sep 17 00:00:00 2001 From: Nick Leeman Date: Sun, 9 Oct 2022 22:11:12 +0200 Subject: [PATCH] sdsd --- views/system_admin_menu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/system_admin_menu.py b/views/system_admin_menu.py index c67f72e..88d92fc 100644 --- a/views/system_admin_menu.py +++ b/views/system_admin_menu.py @@ -72,7 +72,7 @@ class SystemAdminMenu: new_user = User(Database.connection, None, - "", + form.get_value("USERNAME"), form.get_value("FIRSTNAME"), form.get_value("LASTNAME"), form.get_value("ADDRESS"), @@ -96,7 +96,7 @@ class SystemAdminMenu: return edit_form = InputMenu("Edit System Admin (Leave fields empty to not change)") - edit_form.add_option("Username", "Username", "STR", user.username, 1, 250, Validator.check_username) + edit_form.add_option("USERNAME", "Username", "STR", user.username, 1, 250, Validator.check_username) edit_form.add_option("FIRSTNAME", "Firstname", "STR", user.firstname, 1, 250, None) edit_form.add_option("LASTNAME", "Lastname", "STR", user.lastname, 1, 250, None) edit_form.add_option("ADDRESS", "Address", "STR", user.address, 1, 250, None)