Title / Description
Code 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:
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code