# Path: mineid/accounts/forms.py
# class AuthenticationForm(AuthenticationForm):
#     def clean(self):
#         try:
#             return super(AuthenticationForm, self).clean()
#         except UserAlreadyExists:
#             raise forms.ValidationError(
#                 _(
#                     "We could not associate your Minecraft account because "
#                     "this email address is already associated with another "
#                     "account."
#                 ))


from django.conf.urls import include
from django.conf.urls import patterns
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .forms import AuthenticationForm




urlpatterns = patterns(
    '',
   url(r'^login/$',
       auth_views.login,
       {'template_name': 'registration/login.html',
        'authentication_form': AuthenticationForm},
       name='login'),
   url(r'^logout/$',

# Path: mineid/accounts/forms.py
# class AuthenticationForm(AuthenticationForm):
#     def clean(self):
#         try:
#             return super(AuthenticationForm, self).clean()
#         except UserAlreadyExists:
#             raise forms.ValidationError(
#                 _(
#                     "We could not associate your Minecraft account because "
#                     "this email address is already associated with another "
#                     "account."
#                 ))


# Path: mineid/accounts/auth_urls.py
from django.conf.urls import include
from django.conf.urls import patterns
from django.conf.urls import url
from django.contrib.auth import views as auth_views
from .forms import AuthenticationForm





urlpatterns = patterns(
    '',
   url(r'^login/$',
       auth_views.login,
       {'template_name': 'registration/login.html',
        'authentication_form': AuthenticationForm},
       name='login'),
   url(r'^logout/$',

       auth_views.logout,