cc1
v2.1
CC1 source code docs
|
Functions | |
def | check_password |
Checks User password's correctness. | |
def | check_signature |
Authenticate S3 request by checking parameters passed by EC2. | |
def | register |
Registers new user. |
def src.clm.views.guest.user.check_password | ( | login, | |
password | |||
) |
Checks User password's correctness.
http_request | (HttpRequest ) |
login | (POST) user's login |
password | (POST) password to check |
bool
) False if password isn't correct dict
) User.dict() property if password is correct def src.clm.views.guest.user.check_signature | ( | parameters | ) |
Authenticate S3 request by checking parameters passed by EC2.
http_request | (HttpRequest ) |
parameters | (POST) dict with all S3 request headers |
def src.clm.views.guest.user.register | ( | first, | |
last, | |||
login, | |||
email, | |||
new_password, | |||
organization, | |||
wi_data | |||
) |
Registers new user.
http_request | (HttpRequest ) |
first | (POST string ) firstname to set |
last | (POST string ) lastname to set |
login | (POST string ) login to set |
(POST string ) email to set | |
new_password | (POST string ) password to set |
organization | (POST string ) organization to set |
wi_data | (POST dict ) data for sending mail |
dict
)user
(dict
) user's data (User.dict() property)registration_state
(int
) state of reqistration see also: common.states.registration_state