예제 #1
0
def create_newuser():
    n = 0
    while n<3:
        print ("Create new user -\n")
        username = input("Enter new username: "******" " in username):
            print ("\nInvalid username chosen - username cannot contain spaces!\n")
            continue
        password = getpass.getpass("Enter new password: "******"utf-8")
        if (encrypt_s.check_user_exist(username, password)):
            print ("User already exists!\n")
        else:
            encrypt_s.new_user(username, password)
            break
예제 #2
0
def create_newuser():
    n = 0
    while n < 3:
        print("Create new user -\n")
        username = input("Enter new username: "******" " in username):
            print(
                "\nInvalid username chosen - username cannot contain spaces!\n"
            )
            continue
        password = getpass.getpass("Enter new password: "******"utf-8")
        if (encrypt_s.check_user_exist(username, password)):
            print("User already exists!\n")
        else:
            encrypt_s.new_user(username, password)
            break
예제 #3
0
def new_user_login(username, password):
    encryption_standard.new_user(username, password)
예제 #4
0
def new_user_login(username, password):
    encryption_standard.new_user(username, password)