Auth Password Reset View depends on Integer user ID,
|Reported by:||quinode||Owned by:||nobody|
|Severity:||Keywords:||User ID UUID|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I'm using this evil (but so useful) patch to use UUID instead of Integers for User ID :
I have to use UUID, the project needs it, well...
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 :
Which is then then passed to django.auth.contrib.views.password_reset_confirm who just
uid_int = base36_to_int(uidb36)
user = get_object_or_404(User, id=uid_int)
Python hangs with a 100% CPU when a UUID is provided
I patched the files as I could but a better coder (than me) could perhaps add a less integer-dependant logic here ?