First time here? Check out the FAQ!
2

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

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 ?

arturdaz's avatar
21
arturdaz
asked 2012-12-11 13:25:46 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2012-12-11 13:32:38 -0600
edit flag offensive 0 remove flag 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's avatar Evgeny (2012-12-11 13:34:07 -0600) edit
add a comment see more comments

2 Answers

1

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.

Evgeny's avatar
13.2k
Evgeny
answered 2012-12-11 13:31:37 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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

arturdaz's avatar
21
arturdaz
answered 2012-12-11 14:04:53 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments