Changeset - 30f4b245c065
[Not reviewed]
0 3 0
Christopher Neugebauer - 7 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
...
 
@@ -21,3 +21,2 @@ class BetterAccountHookSet(hooks.AccountDefaultHookSet):
 
    def get_username_by_email(self, email):
 

	
 
        try:
pinaxcon/templates/account_login.html
Show inline comments
...
 
@@ -17,3 +17,3 @@
 

	
 
        <form action="{% url 'nbpy_login_handle' %}" method="POST">
 
        <form action="{% url 'account_login' %}" method="POST">
 
          <div class="panel panel-primary">
pinaxcon/urls.py
Show inline comments
...
 
@@ -55,3 +55,4 @@ urlpatterns = [
 
    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")),
0 comments (0 inline, 0 general)