diff --git a/settings.py b/settings.py index 5ed5c4c..15704c1 100644 --- a/settings.py +++ b/settings.py @@ -133,6 +133,10 @@ MIDDLEWARE_CLASSES = ( 'blogs.middleware.BlogMiddleware', ) +AUTHENTICATION_BACKENDS = ( + 'utils.backends.EmailOrUsernameModelBackend', +) + ROOT_URLCONF = 'snipt.urls' PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) diff --git a/templates/registration/login.html b/templates/registration/login.html index 16c8389..af3139b 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -28,7 +28,7 @@