I am migrating a site from Wordpress to Django and I need the old username and passwords to keep working. I first create auth.User objects for all Wordpress users. Wordpress' login username does not conform to Django's so I need to fix some of the usernames during migration.
I then store Wordpress Credentials wp_user_login, wp_user_pass, fixed_username (True is i need to fix there username during migration) and a FK to the new auth.User in a separate table. My custom auth backend will look up the Credentials by wp_user_login, then check the password (hashing it with the same algorithm that Wordpress uses) against wp_user_pass. If the password hashes match and and fixed_username is False I can update the auth.User's password and the upgrade is complete. If fixed_username is True I need to provide an additional step of having the User verify they like there new username, or provide a new one. And then the upgrade is complete. I would like to not have to recreate all of django.contrib.auth.views.login to get this workflow working, but i can figure out how to redirect to the "verify fixed username" page. Anyone solve this before? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.