Source

django-emailauth /

Filename Size Date modified Message
emailauth
1.5 KB
800 B

Registration and Login with Email address for Django

Install::

To install run: pip install hg+https://bitbucket.org/lzantal/django-emailauth

Add it to your INSTALLED_APPS: INSTALLED_APPS = (

'django.contrib.auth', 'django.contrib.sites', 'emailauth', # ...other installed applications...

)

Add it to your project urls: (r'^emailauth/', include('emailauth.urls')),

Configuration::

Registration:

If you don't want free email signups set this to True, defaults to False EMAILAUTH_NO_FREE_EMAIL = True/False

If you don't want users to register set this to False defaults to True EMAILAUTH_REGISTER_OPEN = True/False

Where to redirect after registering defaults to 'emailauth-register-complete' EMAILAUTH_REGISTER_REDIRECT = 'url-name'

Where to redirect if the registration is closed defaults to 'emailauth-register-closed' EMAILAUTH_REGISTER_CLOSED_REDIRECT = 'url-name'

Login:

If you don't want users to login set this to False defaults to True EMAILAUTH_LOGIN_OPEN = True/False

Where to redirect if the login is closed defaults to 'emailauth-login-closed' EMAILAUTH_LOGIN_CLOSED_REDIRECT = 'ur-name'

Where to redirect after login defaults to 'emailauth-login-complete' EMAILAUTH_LOGIN_REDIRECT = 'url-name'

Where to redirect after login defaults to 'emailauth-logout' EMAILAUTH_LOGOUT_REDIRECT = 'url-name'