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 ?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
arturdaz's avatar
21
arturdaz
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

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 (12 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

see more comments
0

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
arturdaz's avatar
21
arturdaz
answered 12 years ago
link

Comments

see more comments