How to retrieve forgotten password of django admin user

1,556 views
Skip to first unread message

Chaitu

unread,
Sep 10, 2008, 9:02:49 AM9/10/08
to Django users, laxman...@gmail.com
I want to modified the django admin login page. In this page I also
wants to display option for retrieve the forgotten password of admin
user. But I am not able to find solution for this.
Please help me for above problems.

Thanks,
Chaitanya.

TiNo

unread,
Sep 10, 2008, 9:13:28 AM9/10/08
to django...@googlegroups.com

Steve Holden

unread,
Sep 10, 2008, 9:14:57 AM9/10/08
to django...@googlegroups.com

I'm not sure it's possible to extract the plaintext password from the
MD5 hashed version, other than by crack-like guessing methods. In theory
there are an infinite number of different passwords that will give the
same hash.

You could just reset the password to some pseudo-random value and then
mail the new version to your user to let them log in again:

http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

TiNo

unread,
Sep 10, 2008, 9:19:02 AM9/10/08
to django...@googlegroups.com
On Wed, Sep 10, 2008 at 3:14 PM, Steve Holden <hold...@gmail.com> wrote:

Chaitu wrote:
> I want to modified the django admin login page. In this page I also
> wants to display option for retrieve the forgotten password of admin
> user. But I am not able to find solution for this.
> Please help me for above problems.
>

I'm not sure it's possible to extract the plaintext password from the
MD5 hashed version, other than by crack-like guessing methods. In theory
there are an infinite number of different passwords that will give the
same hash.

You could just reset the password to some pseudo-random value and then
mail the new version to your user to let them log in again:

http://coderseye.com/2007/howto-reset-the-admin-password-in-django.html

This is only if you want to reset your own password. You wouldn't want to do that for every user...
There is a default view for this. See:

Reply all
Reply to author
Forward
0 new messages