Ask Your Question
2

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

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

arturdaz gravatar image

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

Evgeny gravatar image

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

Comments

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 gravatar imageEvgeny ( 2012-12-11 13:34:07 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

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

Evgeny gravatar image

You can update password in your admin account:

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

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

edit flag offensive delete link more
0

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

arturdaz gravatar image

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

Stats

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

Seen: 187 times

Last updated: Dec 11 '12