mango
mango copied to clipboard
Can you provide some docs on how to use it in authentication?
Hi. Do you have docs for using it in authentication? I am able to authenticate for now, but I am not able to set it within the session management.
I have been doing something like that in my login: user = backend.authenticate(login, password) if user is not None: auth.login( request, user)
However, checking if a user is authenticated is not supported for now: if request.user.is_authenticated(): this throws an error.
Maybe I am using it wrong?