Esempio n. 1
0
def select_action() -> int:
    window_manager.clear_screen()
    output_manager.display_message("Available commands:")
    output_manager.display_message("1: Create new account")
    output_manager.display_message("2: Log in")
    output_manager.display_message("3: Change password")
    output_manager.display_message("4: (show users: test functionality!)")
    try:
        action = int(input())
    except ValueError:
        raise
    else:
        return action
Esempio n. 2
0
def request_confirmation() -> str:
    output_manager.display_message("confirm password")
    return input()
Esempio n. 3
0
def request_new_password() -> str:
    output_manager.display_message("enter new password")
    return input()
Esempio n. 4
0
def request_user_name() -> str:
    output_manager.display_message("enter user name")
    return input()