Ask Your Question

How to log in as administrator after password login was disabled?

asked 2012-12-11 13:25:46 -0500

arturdaz's avatar

updated 2012-12-11 13:32:38 -0500

Evgeny's avatar

I have disabled askbot login and left just facebook login enabled. Now I need to login with my admin account, but I don't know how. I don't want to drop my database and create a new one. What can I do ?

edit retag flag offensive close merge delete


Please note that FB login is still broken, if you're willing to fix it - please fork askbot, read fb authentication documentation and make a pull request on github after making the fix.

Evgeny's avatar Evgeny  ( 2012-12-11 13:34:07 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-12-11 13:31:37 -0500

Evgeny's avatar

You can update password in your admin account:

python shell
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(id=your_user_id)
>>> u.set_password('yourpassword')

Then log in via the admin interface at url /admin, you might have to add that your in the root

edit flag offensive delete link more

answered 2012-12-11 14:04:53 -0500

arturdaz's avatar

Thanks for the help !! I just loged in at /settings and changed de login providers, now everything runs well !

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-12-11 13:25:46 -0500

Seen: 2,055 times

Last updated: Dec 11 '12