[2.0.x] Suggested LoginView rather than @login_required as an alternative to authenticate().
Backport of 3642c3758b
from master
This commit is contained in:
parent
e3b59772ba
commit
c4f518e484
|
@ -146,9 +146,8 @@ Authenticating users
|
||||||
example, it's used by the
|
example, it's used by the
|
||||||
:class:`~django.contrib.auth.middleware.RemoteUserMiddleware`. Unless
|
:class:`~django.contrib.auth.middleware.RemoteUserMiddleware`. Unless
|
||||||
you are writing your own authentication system, you probably won't use
|
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
|
this. Rather if you're looking for a way to login a user, use the
|
||||||
users, see the :func:`~django.contrib.auth.decorators.login_required`
|
:class:`~django.contrib.auth.views.LoginView`.
|
||||||
decorator.
|
|
||||||
|
|
||||||
.. _topic-authorization:
|
.. _topic-authorization:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue