Removes the ability to login by username \o.
This commit is contained in:
		
							parent
							
								
									0487525f5c
								
							
						
					
					
						commit
						30f4b245c0
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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: | ||||
|  |  | |||
|  | @ -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"> | ||||
|  |  | |||
|  | @ -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"), | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer