Django URL reset after authentication fail
if user is not None: login(request, user) return redirect(‘home’) else: error_message = “Invalid username or password.” return render(request, ‘login.html’, {‘error_message’: error_message}) Using the above code, if user enters wrong credentials, login.html shows up successfully with error message. But now the URL is http://localhost:8000/authentication_view/. Now if the user re-enters credentials, the URL will be http://localhost:8000/authentication_view/authentication_view/, and […]
How do I ensure that only certain domain names can sign up using django authentication tools?
I want to restrict my signups to certain colleges while building a product using django. I want to do something similar to how Autodesk approves its users. I have a list of the domain names.