magpie.ui.login.views

Module Contents

Classes

LoginViews

Handles UI operations related to login to, logout from, or registration of user accounts.

class magpie.ui.login.views.LoginViews(request)[source]

Bases: magpie.ui.utils.AdminRequests, magpie.ui.utils.BaseViews

Handles UI operations related to login to, logout from, or registration of user accounts.

Warning

Admin requests are applicable only when using the temporary login. The temporary session is handled by dispatching operations to AdminRequest. Only those methods should work with elevated session to ensure that returning those views in this class are back to unauthenticated level access.

request_providers_json()[source]
login()[source]
logout()[source]
get_group_info(group_name)[source]
register_user()[source]

User self-registration form results.

Note

The template employed for this form is reused for user creation by an administrator as the fields and validation of inputs are essentially the same. Their actual processing is different though, as in this case, the user attempting registration is not yet logged nor has any administrative access.