#14724: Auth Password Reset View depends on Integer user ID,
----------------------------+-----------------------------------------------
Reporter: quinode | Owner: nobody
Status: new | Milestone:
Component: Authentication | Version: 1.2
Keywords: User ID UUID | Stage: Unreviewed
Has_patch: 0 |
----------------------------+-----------------------------------------------
I'm using this evil (but so useful) patch to use UUID instead of Integers
for User ID :
http://djangosnippets.org/snippets/1497/
[[BR]]
I have to use UUID, the project needs it, well...
[[BR]]
I don't know if this will become a future django option, so I don't know
if this can be called a bug or a feature request
'''django.contrib.auth.forms.PasswordResetForm''' adds this in the
context :
{{{
'uid': int_to_base36(user.id)
}}}
Which is then then passed to
'''django.auth.contrib.views.password_reset_confirm''' who just
{{{
uid_int = base36_to_int(uidb36)
}}}
and then
{{{
user = get_object_or_404(User, id=uid_int)
}}}
Python hangs with a 100% CPU when a UUID is provided
[[BR]]
I patched the files as I could but a better coder (than me) could perhaps
add a less integer-dependant logic here ?
thanks
--
Ticket URL: <http://code.djangoproject.com/ticket/14724>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.