Skip to content
Snippets Groups Projects
Commit 76824bd0 authored by Pál Boldizsár's avatar Pál Boldizsár
Browse files

I am such a dumb boi

parent 4b65f254
No related branches found
No related tags found
No related merge requests found
import DB.Database as db
def Register(username=None, password=None):
if db.check_user_name(username) != '':
return db.check_user_name(username)
if db.validate_password(password) != '':
return db.validate_password(password)
else:
db.create_user(username, password)
return 'Succes'
if __name__ == "__main__":
text_input = input("Press enter to start registration")
if text_input == '':
name = input("Give us a Username ")
psw = input("Give us a Password ")
state = Register(name, psw)
if state != 'Succes':
while state != 'Succes':
print('Let\'s Try again because:' + state, '\n')
name = input("Give us a Username ")
psw = input("Give us a Password ")
state = Register(name, psw)
print('Noice')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment