开发者

Migrating Rails restful authentication users to Django

I'm looking to migrate users of a rails app which uses the Restful Authentication module (which uses a stretched sha1 encryption algorithm) to a Django app, using the default authentication framework (which uses a plain sha1 algorithm). Does anybody know how I can make this happen? specifically开发者_运维百科, can I somehow implement the same encrytion algorithm in Django? Thanks for your help.


Yes, you should be able to create your own backend. I've done this to create an 'e-mail instead of username' and a 'ignore case' backends.

See "Writing authentication backends".

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜