Is it possible to implement an equivalent sudofor Django profiles? I am using a basic authentication system django.contrib.auth.
Usecase . Sometimes users report errors that are reproduced only in their profile, so every time I change my password, register, fix the error and replace the password with the original one.
I tried to implement this function with login(), but this requires a call authenticate(), which is not an option, because we do not have a password in clear text, just a hashed one.
Is there any smart way to do this? Also, what messed up the user password?
Thank!
source
share