浏览代码

fix signup #463

version-14
Pratik Vyas 11 年前
父节点
当前提交
2500d1e8cd
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      frappe/core/doctype/user/user.py

+ 3
- 2
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})



正在加载...
取消
保存