Your code shows you that it redirects on invalid login instead of
immediately rendering the same form plus error message.
On Wed, 3 Jul 2019, 23:04 KUMBHAGIRI SIVAKRISHNA,
wrote:
> Even I was entered wrong username and wrong password ,but it directs to
> same login with empty spaces.
>
> On We
Even I was entered wrong username and wrong password ,but it directs to
same login with empty spaces.
On Wed, 3 Jul 2019, 8:09 pm Aldian Fazrihady, wrote:
> Redirection should only be done on successful login.
> Invalid login should directly render the form plus error message.
>
> Regards,
>
>
Redirection should only be done on successful login.
Invalid login should directly render the form plus error message.
Regards,
Aldian Fazrihady
On Wed, 3 Jul 2019, 18:03 KUMBHAGIRI SIVAKRISHNA,
wrote:
> I entered username and password ,and click submit ,then it directs same
> login page with
Try debugging your view with a print statement. Print the username and
password to see if those values are getting passed in.
On Wednesday, July 3, 2019 at 6:02:52 AM UTC-5, KUMBHAGIRI SIVAKRISHNA
wrote:
>
> I entered username and password ,and click submit ,then it directs same
> login page wi
I entered username and password ,and click submit ,then it directs same login
page with empty username and password columns, logic is correct in views.py
Please help me ,give any suggestions to solve this issue
views.py:
==
from django.shortcuts import render ,redirect
from django.contrib
5 matches
Mail list logo