예제 #1
0
 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"
예제 #2
0
    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
예제 #4
0
    def POST(self):
        res = web.data()
        data = json.loads(res)
        #print(data)

        reg_model = RegisterModel.RegisterModel()
        reg_model.insert_user(data)

        return data['firstName']
예제 #5
0
    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"
예제 #6
0
    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
예제 #7
0
 def POST(self):
     # Gets user data from form
     data = web.input()
     reg_model = RegisterModel.RegisterModel()
     reg_model.insert_user(data)
     return "success"
예제 #8
0
 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
예제 #9
0
 def POST(self):
     data = web.input()
     regModel = RegisterModel.RegisterModel()
     regModel.save_user(data)
예제 #10
0
 def POST(self):
     print("DOING POST PROCESSING")
     data = web.input()
     reg_model = RegisterModel.RegisterModel()
     reg_model.insert_user(data)
     return data.username
예제 #11
0
 def POST(self):
     data = web.input()
     data.username = session_data['user']['username']
     update = RegisterModel.RegisterModel()
     update.update_settings(data)
     return "success"
예제 #12
0
 def POST(self):
     data = web.input()
     print("data:", data)
     reg_model = RegisterModel.RegisterModel()
     reg_model.insert_user(data)
     return data
예제 #13
0
 def POST(self):
     data = web.input()
     reg_model = RegisterModel.RegisterModel()
     reg_model.insert_user(data.username, data.name, data.email, data.password)