开发者

Import PhpBB2 users into django-auth

开发者 https://www.devze.com 2022-12-16 20:51 出处:网络
Is t开发者_如何学编程here an elegant way to take the phpbb user table from the version 2 series, and import the users into my django auth_users table?

Is t开发者_如何学编程here an elegant way to take the phpbb user table from the version 2 series, and import the users into my django auth_users table?

I'm looking to outright dumb the old table completely, but don't want to lose the users.

I'm aware that the password column is just a md5 hash of the user's password, but inserting the user with md5$$userpasswordhashere doesnt seem to work, the user just gets redirected back to the admin interface. no error messages are presented.

I did see this: http://www.djangosnippets.org/snippets/915/ on django snippets, and the comments say that the default backend should work... but no luck.

Any alternate ideas would be welcome. By alternate, i mean ways of getting users to reset their own passwords. I'd perfer not to write my own authentication backend that this time.


This actually does work. Using md5$$hashgoeshere will obtain the intended results.

Django debug toolbar was actually the problem here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号