From 431fab0520c38a8698c8a1569f31a860012cfd7c Mon Sep 17 00:00:00 2001 From: wangxiyu191 <910741878@qq.com> Date: Fri, 29 Jul 2016 11:43:55 +0800 Subject: [PATCH] fix reset_password show twice in reset email (#134) it made something like http://localhost:4000/reset_password/reset_password/Ilx1MzA1NVx1MzA0Zlx1MzA4OVx1ODM1OCIuQ25zSEN3LlVxRlBxUzB4clR6QzdkREdaR2hBLWIz Y1FRcw== it should be http://localhost:4000/reset_password/Ilx1MzA1NVx1MzA0Zlx1MzA4OVx1ODM1OCIuQ25zSEN3LlVxRlBxUzB4clR6QzdkREdaR2hBLWIz Y1FRcw== --- CTFd/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTFd/auth.py b/CTFd/auth.py index 238cedd7..02ddfade 100644 --- a/CTFd/auth.py +++ b/CTFd/auth.py @@ -67,7 +67,7 @@ def reset_password(data=None): text = """ Did you initiate a password reset? -{0}/reset_password/{1} +{0}/{1} """.format(url_for('auth.reset_password', _external=True), token.encode('base64'))