registration.contrib.autologin package

Submodules

registration.contrib.autologin.conf module

class registration.contrib.autologin.conf.InspectionalRegistrationAutoLoginAppConf(**kwargs)[source]

Bases: appconf.base.AppConf

AUTO_LOGIN = True
class Meta[source]
prefix = u'registration'

registration.contrib.autologin.models module

registration.contrib.autologin.tests module

class registration.contrib.autologin.tests.RegistrationAutoLoginTestCase(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

backend = <registration.backends.default.DefaultRegistrationBackend object>
mock_request = <WSGIRequest: GET '/'>
test_auto_login()[source]

Wheather auto login feature works correctly

test_no_auto_login_with_no_password()[source]

Auto login feature should not be occur with no password (programatically activated by Django Admin action)

test_no_auto_login_with_setting()[source]

Auto login feature should be able to off with REGISTRATION_AUTO_LOGIN = False

Module contents

registration.contrib.autologin.auto_login_reciver(sender, user, password, is_generated, request, **kwargs)[source]

automatically log activated user in when they have activated

registration.contrib.autologin.is_auto_login_enable()[source]

get whether the registration autologin is enable