I have a form class where I ask for a username and password. I created my own authenticate function. I simply want to pass the username and password input to the authenticate function. I've tried saving it as self.user/self.pw or passing it directly.
Thanks in advance!
I am using Django lockdown. I don't need to save the username and password to a database because I'm using my own authentication function.
class loginform(forms.Form):
username = forms.CharField ...
password = forms.CharField...
def authenticate(self, request, username, password):
print("this actually prints")
'''authenticate with passed username and password'''