Mezzanine reset password

243 views
Skip to first unread message

Radomir Wojcik

unread,
Apr 16, 2014, 2:40:18 PM4/16/14
to mezzani...@googlegroups.com
I think the reset password function is broken in mezzanine, probably because django now uses 64 bit, not 36 bit uidb:

def password_reset_verify(request, uidb36=None, token=None):
    user = authenticate(uidb36=uidb36, token=token, is_active=True)
    if user is not None:
        auth_login(request, user)
        return redirect("profile_update")
    else:
        error(request, _("The link you clicked is no longer valid."))
        return redirect("/")

I remember having to change this a while ago in one of my Django apps.


So right now it seems that when you send out a password reset request you get an email with the url pointing to the site without the token and uid : 

You're receiving this e-mail because you requested a password reset
for your user account at Default.

Please go to the following page and choose a new password:



http://127.0.0.1:8000

Your username, in case you've forgotten: rad

Thanks for using our site!

The Default team


Out of the box I was expecting the url to be something like this:



Stephen McDonald

unread,
Apr 16, 2014, 4:27:26 PM4/16/14
to mezzani...@googlegroups.com
Please check the latest unreleased version on github, I believe this is resolved.


--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Stephen McDonald
http://jupo.org

Radomir Wojcik

unread,
Apr 16, 2014, 7:39:02 PM4/16/14
to mezzani...@googlegroups.com, st...@jupo.org
Just tested & looks good! Thanks!
Reply all
Reply to author
Forward
0 new messages