Ship-equivalent for Django user profiles

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!

+3
source share
2 answers

Djangosnippets.org is your friend: http://www.djangosnippets.org/snippets/1590/

+3
source

I clicked the user panel on the debug toolbar. It works great when it runs in all users. The fork is here.

http://github.com/mjbrownie/django-debug-toolbar

it also displays some permission information for the primary user group. I did not expand it.

you could borrow logic so that it does not start in debug mode.

Edit: This post and plugin are deprecated and are no longer supported. Looks like someone created this on their own.

https://github.com/playfire/django-debug-toolbar-user-panel

+2
source

Source: https://habr.com/ru/post/1733370/


All Articles