shoop.front.apps.auth package

Submodules

shoop.front.apps.auth.forms module

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

Bases: django.contrib.auth.forms.AuthenticationForm

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

Do not let user with inactive person contact to login.

base_fields = OrderedDict([('username', <django.forms.fields.CharField object at 0x7f5305334390>), ('password', <django.forms.fields.CharField object at 0x7f53053345c0>)])
declared_fields = OrderedDict([('username', <django.forms.fields.CharField object at 0x7f5305334390>), ('password', <django.forms.fields.CharField object at 0x7f53053345c0>)])
media
class shoop.front.apps.auth.forms.RecoverPasswordForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False)[source]

Bases: django.forms.forms.Form

token_generator = <django.contrib.auth.tokens.PasswordResetTokenGenerator object>
subject_template_name = ('shoop/user/recover_password_mail_subject.jinja',)
email_template_name = 'shoop/user/recover_password_mail_content.jinja'
from_email = None
clean()[source]
save(request)[source]
process_user(user_to_recover)[source]
base_fields = OrderedDict([('username', <django.forms.fields.CharField object at 0x7f5304c4cef0>), ('email', <django.forms.fields.EmailField object at 0x7f5304c4cfd0>)])
declared_fields = OrderedDict([('username', <django.forms.fields.CharField object at 0x7f5304c4cef0>), ('email', <django.forms.fields.EmailField object at 0x7f5304c4cfd0>)])
media

shoop.front.apps.auth.urls module

shoop.front.apps.auth.views module

class shoop.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 = 'shoop/user/login.jinja'
form_class

alias of EmailAuthenticationForm

get_context_data(**kwargs)[source]
get_form(form_class=None)[source]
form_valid(form)[source]
get_success_url()[source]
class shoop.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 = 'shoop/user/logout.jinja'
dispatch(request, *args, **kwargs)[source]
class shoop.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 = 'shoop/user/recover_password.jinja'
form_class

alias of RecoverPasswordForm

success_url = <django.utils.functional.lazy.<locals>.__proxy__ object>
form_valid(form)[source]
class shoop.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 = 'shoop/user/recover_password_confirm.jinja'
form_class

alias of SetPasswordForm

token_generator = <django.contrib.auth.tokens.PasswordResetTokenGenerator object>
success_url = <django.utils.functional.lazy.<locals>.__proxy__ object>
get_form_kwargs()[source]
get_target_user()[source]
dispatch(request, *args, **kwargs)[source]
form_valid(form)[source]
class shoop.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 = 'shoop/user/recover_password_sent.jinja'
class shoop.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 = 'shoop/user/recover_password_complete.jinja'

Module contents

class shoop.front.apps.auth.AuthAppConfig(*args, **kwargs)[source]

Bases: shoop.apps.AppConfig

name = 'shoop.front.apps.auth'
verbose_name = 'Shoop Frontend - User Authentication'
label = 'shoop_front.auth'
provides = {'front_urls': ['shoop.front.apps.auth.urls:urlpatterns']}