def POST(self): data = web.input() can_use_username = RegisterModel.RegisterModel() y = can_use_username.check_username(data) if y: reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return data.username else: return "error"
def POST(self): data = web.input() reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return data.username
def POST(self): data = web.input() # Here we will make a call to out model RegisterModel.py inside that we will call RegisterModel class reg_model = RegisterModel.RegisterModel() # Using insert user we will create a new entry to the data base for this user who registers reg_model.insert_user(data) return data.username
def POST(self): res = web.data() data = json.loads(res) #print(data) reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return data['firstName']
def POST(self): data = web.input() reg_model = RegisterModel.RegisterModel() isUser = reg_model.check_login(data) if isUser: session_data['user'] = isUser return isUser else: return "error"
def POST(self): data = web.input() reg_model = RegisterModel.RegisterModel() user_exists = reg_model.check_if_user_exists(data) if user_exists: return "error" else: reg_model.insert_users(data) return data.name
def POST(self): # Gets user data from form data = web.input() reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return "success"
def POST(self): data = web.input() print("Posting the Register details into database") reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return data.username
def POST(self): data = web.input() regModel = RegisterModel.RegisterModel() regModel.save_user(data)
def POST(self): print("DOING POST PROCESSING") data = web.input() reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return data.username
def POST(self): data = web.input() data.username = session_data['user']['username'] update = RegisterModel.RegisterModel() update.update_settings(data) return "success"
def POST(self): data = web.input() print("data:", data) reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return data
def POST(self): data = web.input() reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data.username, data.name, data.email, data.password)