This commit is contained in:
Nick Leeman 2022-10-09 23:15:25 +02:00
parent 309d60e3d7
commit ba3da19b69
2 changed files with 2 additions and 6 deletions

View File

@ -11,8 +11,4 @@ def main():
DatabaseUtils.init_city_data()
LoginMenu.display()
# test = InputMenu("test")
# test.add_option("EMAIL", "email", "STR", "nick.leeman@hotmail.com", 0, 40, EMAIL_VALIDATOR)
# test.do_input()
# print(test.get_value("EMAIL"))
main()

View File

@ -12,7 +12,7 @@ class LoginMenu:
while True:
Utils.clear_screen()
login_form = InputMenu("Login Into Furnicur Family System")
login_form.add_option("USERNAME", "Username", "STR", "superadmin", 1, 250, None).add_option("PASSWORD", "Password", "STR", "Admin321!", 1, 250, None).do_input()
login_form.add_option("USERNAME", "Username", "STR", "", 1, 250, None).add_option("PASSWORD", "Password", "STR", "", 1, 250, None).do_input()
user = Auth.check_auth(login_form.get_value("USERNAME"), login_form.get_value("PASSWORD"))
if user: