Changeset - 30f4b245c065
[Not reviewed]
0 3 0
Christopher Neugebauer - 3 years ago 2017-08-18 16:39:54
chrisjrn@gmail.com
Removes the ability to login by username \o.
3 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
pinaxcon/account_hooks.py
Show inline comments
...
 
@@ -19,7 +19,6 @@ class BetterAccountHookSet(hooks.AccountDefaultHookSet):
 
        }
 

	
 
    def get_username_by_email(self, email):
 

	
 
        try:
 
            return User.objects.get(email=email).username
 
        except User.DoesNotExist:
pinaxcon/templates/account_login.html
Show inline comments
...
 
@@ -15,7 +15,7 @@
 
    <div class="row">
 
      <div class="col-md-4">
 

	
 
        <form action="{% url 'nbpy_login_handle' %}" method="POST">
 
        <form action="{% url 'account_login' %}" method="POST">
 
          <div class="panel panel-primary">
 
            <div class="panel-heading">
 
              <h3 class="panel-title">
pinaxcon/urls.py
Show inline comments
...
 
@@ -53,7 +53,8 @@ urlpatterns = [
 
    url(r"^admin/", include(admin.site.urls)),
 

	
 
    url(r"^login$", views.account_login, name="nbpy_login"),
 
    url(r"^login_handle$", views.EmailLoginView.as_view(), name="nbpy_login_handle"),
 
    # Override the default account_login view with one that takes email addys
 
    url(r"^account/login/$", views.EmailLoginView.as_view(), name="account_login"),
 
    url(r"^account/", include("account.urls")),
 

	
 
    url(r"^dashboard/", symposion.views.dashboard, name="dashboard"),
0 comments (0 inline, 0 general)