From 2500d1e8cd7f8d2a0010fb3d9b9ab84668f65a42 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Thu, 17 Apr 2014 13:27:20 +0530 Subject: [PATCH] fix signup #463 --- frappe/core/doctype/user/user.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index 50bac68c04..622aa09db1 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -122,8 +122,9 @@ class User(Document): def send_welcome_mail(self): from frappe.utils import random_string, get_url - self.reset_password_key = random_string(32) - link = get_url("/update-password?key=" + self.reset_password_key) + key = random_string(32) + self.db_set("reset_password_key", key) + link = get_url("/update-password?key=" + key) self.send_login_mail("Verify Your Account", "templates/emails/new_user.html", {"link": link})