pypicloud.views.login module

Render views for logging in and out of the web interface


Intercept 403’s and return 401’s when necessary

pypicloud.views.login.do_login(request, username, password)[source]

Check credentials and log in

pypicloud.views.login.do_token_register(request, token, password)[source]

Consume a signed token and create a new user


Catch login and redirect to login wall

pypicloud.views.login.handle_register_request(request, username, password)[source]

Process a request to register a new user


Delete the user session

pypicloud.views.login.register(request, username, password)[source]

Check credentials and log in

pypicloud.views.login.register_new_user(access, username, password)[source]

Register a new user & handle duplicate detection