- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
def Auth(req, email, pwd):
try:
pass#checking ability of set cookies
except:
return error='error_of_set_cookies'
else:
if a.ValidateUsers(mail_replace_back(email),pwd)
email=Cookie.Cookie('email', CookieName)
Cookie.add_cookie(req, email)
pwd=Cookie.Cookie('pwd', CookieName)
Cookie.add_cookie(req, pwd)
return None
else:
return error='not_in_bd'
guest 06.07.2009 18:53 # 0
а оно вообще работает?
guest 06.01.2017 22:15 # −3
guest 06.01.2017 23:18 # −2