dollarortwo Nov 6th, 2018 135 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def newUser():
  2.     try:
  3.         createID= int(input("Enter employee ID: "))
  4.     except ValueError:
  5.         print("\nenter a valid employee ID\n")
  6.     with sqlite3.connect('OS_Employee.db') as db:
  7.         user= db.cursor()
  8.     if createID in user:
  9.         print("ID already exists")
  10.     else:
  11.         createLogin= input("Enter your email: ")
  12.         if createLogin in user:
  13.             print("email already exist")
  14.         else:
  15.             createPass= input("Enter new password: ")
  16.             user[createLogin]= createPass
  17.             print("\nNew user create\n")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand