def post_login(): # Handle the form processing username = request.forms.get('username') password = request.forms.get('password') # Call the appropriate method return model.login_check(username, password)
def do_login(): username = html.escape(request.forms.get('username')) if len(username) > 10: return model.error() password = html.escape(request.forms.get('password')) if len(password) > 20: return model.error() #response.set_cookie("username",username, secret='m14AGroup6') return model.login_check(username, password)
def post_login(): ''' post_login Handles login attempts Expects a form containing 'username' and 'password' fields ''' # Handle the form processing username = request.forms.get('username') password = request.forms.get('password') # Call the appropriate method return model.login_check(username, password)
def do_login(): username = request.forms.get('username') password = request.forms.get('password') return model.login_check(username, password)