On Dec 17, 2007 5:44 AM, akaihola <[EMAIL PROTECTED]> wrote:
>
> I need to allow users to log in to my Django site with their old Unix
> usernames and passwords, which may be encoded with MD5-based crypt.
> Yuri, I don't believe your hook provides that functionality.
You've said, you need to migrate accounts.

With my solution all will be perfect if you will have additional table
for those old passwords.
And your solution can be even more simple -- create your own function
for authentication backend and hook only set_password(user,
raw_password) with your own your_set_password and do
real_set_password = User.set_password
User.set_password = your_set_password ;)

But your patches are useful though. +0 from me.

Btw, what did you want to achieve with discussion in django-dev?

-- 
Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov,
MSN: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to