shuup.front.apps.auth package

Submodules

shuup.front.apps.auth.forms module

class shuup.front.apps.auth.forms.EmailAuthenticationForm(*args, **kwargs)[source]

Bases: django.contrib.auth.forms.AuthenticationForm

error_messages = {'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.', 'inactive': 'This account is inactive.'}
clean_username()[source]
clean()[source]
confirm_login_allowed(user)[source]

Do not let inactive person contact user to login.

base_fields = OrderedDict([('username', <django.contrib.auth.forms.UsernameField object>), ('password', <django.forms.fields.CharField object>)])
declared_fields = OrderedDict([('username', <django.contrib.auth.forms.UsernameField object>), ('password', <django.forms.fields.CharField object>)])
media

shuup.front.apps.auth.settings module

shuup.front.apps.auth.settings.SHUUP_AUTH_EMAIL_CONTENT_SUBTYPE = 'plain'

Require email-based activation for users?

Configures the content subtype of the emails sent by Auth app Set html if your template is HTML-based

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: django.views.generic.edit.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

get_context_data(**kwargs)[source]
get_form_kwargs()[source]
get_form(form_class=None, id_prefix='auth')[source]
form_valid(form)[source]
get_success_url()[source]
class shuup.front.apps.auth.views.LogoutView(**kwargs)[source]

Bases: django.views.generic.base.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/user/logout.jinja'
dispatch(request, *args, **kwargs)[source]
class shuup.front.apps.auth.views.RecoverPasswordView(**kwargs)[source]

Bases: django.views.generic.edit.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/'
form_valid(form)[source]
class shuup.front.apps.auth.views.RecoverPasswordConfirmView(**kwargs)[source]

Bases: django.views.generic.edit.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/'
get_form_kwargs()[source]
get_target_user()[source]
dispatch(request, *args, **kwargs)[source]
form_valid(form)[source]
class shuup.front.apps.auth.views.RecoverPasswordSentView(**kwargs)[source]

Bases: django.views.generic.base.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: django.views.generic.base.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: shuup.apps.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']}