Login page is still visible for already logged in user

6 views
Skip to first unread message

Gaurav Sahu

unread,
Jun 8, 2019, 2:24:52 PM6/8/19
to Django users
Hy everyone,
When a person is already logged in he/she can still be able to access login form in my login Django functionality by typing the login URL. I am using Django's default LoginView as my login view.  This is the URL of my login page.

    re_path(r'login/$', auth_views.LoginView.as_view(template_name='accounts/login.html'), name='login')



Reply all
Reply to author
Forward
0 new messages