mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Added a note regarding django.contrib.auth.authenticate.
Thanks Josh Brown for the suggestion.
This commit is contained in:
		
							parent
							
								
									465980d070
								
							
						
					
					
						commit
						ae5b662796
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -142,6 +142,16 @@ Authenticating Users
 | 
				
			||||||
            # the authentication system was unable to verify the username and password
 | 
					            # the authentication system was unable to verify the username and password
 | 
				
			||||||
            print("The username and password were incorrect.")
 | 
					            print("The username and password were incorrect.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    .. note::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        This is a low level way to authenticate a set of credentials; for
 | 
				
			||||||
 | 
					        example, it's used by the
 | 
				
			||||||
 | 
					        :class:`~django.contrib.auth.middleware.RemoteUserMiddleware`. Unless
 | 
				
			||||||
 | 
					        you are writing your own authentication system, you probably won't use
 | 
				
			||||||
 | 
					        this. Rather if you are looking for a way to limit access to logged in
 | 
				
			||||||
 | 
					        users, see the :func:`~django.contrib.auth.decorators.login_required`
 | 
				
			||||||
 | 
					        decorator.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. _topic-authorization:
 | 
					.. _topic-authorization:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Permissions and Authorization
 | 
					Permissions and Authorization
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue