shuup.front.apps.auth package
Submodules
shuup.front.apps.auth.forms module
- class shuup.front.apps.auth.forms.EmailAuthenticationForm(*args, **kwargs)[source]
Bases:
AuthenticationForm
The ‘request’ parameter is set for custom auth use by subclasses. The form data comes in via the standard ‘data’ kwarg.
- error_messages = {'inactive': 'This account is inactive.', 'invalid_login': 'Error! Please enter a correct %(username)s and password. Note that both fields may be case-sensitive. In case of multiple accounts with same email only username can be used to log in.'}
- __init__(*args, **kwargs)[source]
The ‘request’ parameter is set for custom auth use by subclasses. The form data comes in via the standard ‘data’ kwarg.
- clean()[source]
Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named ‘__all__’.
- base_fields = {'password': <django.forms.fields.CharField object>, 'username': <django.contrib.auth.forms.UsernameField object>}
- declared_fields = {'password': <django.forms.fields.CharField object>, 'username': <django.contrib.auth.forms.UsernameField object>}
- property media
Return all media required to render the widgets on this form.
shuup.front.apps.auth.settings module
- shuup.front.apps.auth.settings.SHUUP_AUTH_LOGIN_FORM_SPEC = 'shuup.front.apps.auth.forms.EmailAuthenticationForm'
Specify the authentication form to be used in login views
shuup.front.apps.auth.urls module
shuup.front.apps.auth.views module
- class shuup.front.apps.auth.views.LoginView(**kwargs)[source]
Bases:
FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/user/login.jinja'
- form_class
alias of
EmailAuthenticationForm
- class shuup.front.apps.auth.views.LogoutView(**kwargs)[source]
Bases:
TemplateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/user/logout.jinja'
- class shuup.front.apps.auth.views.RecoverPasswordView(**kwargs)[source]
Bases:
FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/user/recover_password.jinja'
- form_class
alias of
RecoverPasswordForm
- success_url = '/recover-password/sent/'
- class shuup.front.apps.auth.views.RecoverPasswordConfirmView(**kwargs)[source]
Bases:
FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/user/recover_password_confirm.jinja'
- form_class
alias of
SetPasswordForm
- token_generator = <django.contrib.auth.tokens.PasswordResetTokenGenerator object>
- success_url = '/recover-password/complete/'
- class shuup.front.apps.auth.views.RecoverPasswordSentView(**kwargs)[source]
Bases:
TemplateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/user/recover_password_sent.jinja'
- class shuup.front.apps.auth.views.RecoverPasswordCompleteView(**kwargs)[source]
Bases:
TemplateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/user/recover_password_complete.jinja'
Module contents
- class shuup.front.apps.auth.AuthAppConfig(*args, **kwargs)[source]
Bases:
AppConfig
- name = 'shuup.front.apps.auth'
- verbose_name = 'Shuup Frontend - User Authentication'
- label = 'shuup_front_auth'
- provides = {'front_urls': ['shuup.front.apps.auth.urls:urlpatterns']}
See /provides for details about the
provides
variable.