def is_email_valid(self, email_field): userdata = UserData() return False if userdata.find_by_prop("email", email_field) else True
def find_by_username(self, username): userdata = UserData() return userdata.find_by_username(username)
def is_username_valid(self, username_field): userdata = UserData() return False if userdata.find_by_prop("username", username_field) else True
def insert_one(self, user): userdata = UserData() userdata.create_user(user)