示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
def do_login():
    username = request.forms.get('username')
    password = request.forms.get('password')
    return model.login_check(username, password)