Re: User not Authenticating.

2023-04-24 Thread Lawal Tobiloba Samuel
I later got what I did wrong... I wanted to retrieve the user information from the form (request.POST.get("username")), but in d form there was no input tag that is named username nor password... So when the view function request those informations, it was returning an empty string that was why i

Re: User not Authenticating.

2023-04-24 Thread Ruby Shell
`authenticate` requires a positional argument (request) try userLogin = authenticate(request, username=username, password=password) On Monday, April 24, 2023 at 5:51:45 PM UTC+1 oluwafemi damilola wrote: > userLogin = authenticate(request, username=username, password=password) > > On Mon, 24 Apr

Re: User not Authenticating.

2023-04-24 Thread oluwafemi damilola
userLogin = authenticate(request, username=username, password=password) On Mon, 24 Apr 2023 at 17:29, Opeoluwa Fatunmbi wrote: > > Let me see your login.html > > > > > > > On Mon, 24 Apr 2023 at 17:28, Lawal Tobiloba Samuel < > oluwasheun9...@gmail.com> wrote: > >> code here: >> >> def loginPage

Re: User not Authenticating.

2023-04-24 Thread Opeoluwa Fatunmbi
Let me see your login.html On Mon, 24 Apr 2023 at 17:28, Lawal Tobiloba Samuel < oluwasheun9...@gmail.com> wrote: > code here: > > def loginPage(request): > if request.method == "POST": > username = request.POST.get("username") > password = request.POST.get("password") >

Re: User not Authenticating.

2023-04-24 Thread Lawal Tobiloba Samuel
code here: def loginPage(request): if request.method == "POST": username = request.POST.get("username") password = request.POST.get("password") userLogin = authenticate(username=username, password=password) if userLogin is not None: login(request, us