Monday, July 30, 2018

Re: Authentication (Login view)

in your templates you make a check using {%  if request.user.is_authenticated % } content to show {% else %} the login url {% endif %}

On Mon, 30 Jul 2018, 13:41 SAD BOIII, <ar80pro@gmail.com> wrote:
?guys, how can i stop logged in users from accessing the log in page again


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/39c8091c-1e46-4bc5-8dee-b50804390467%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHV4E-fns4BGa3Dppzt%2BNigk7ZEudr8P3gQ86mtgTfpeksKbeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment