user = authenticate(request, username=str_username, password=str_password)
if user:
login(request, user)
The authenticate function is working correctly and returning the expected result. However, the login function is causing a database error. I would appreciate any help in resolving this issue. Thank you in advance!