###

Python code posted
created at 27 Apr 00:54, updated at 29 Apr 17:12

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
def check_login(login,passwd):
    l = (login,)
    p = (passwd,)
    """ porownuje login i pass podane w formularzu z wpisami w bazie tabela operators"""
    z = _sql3_spell("SELECT pass FROM operators WHERE login=?",(_login,))
    #print z[0][0]
#~ #~
    if _passwd==z[0][0]:
        Session().user = login
        raise HTTP_REDIRECTION,"index"
    else:
368 Bytes in 3 ms with coderay