fix signup #463
This commit is contained in:
parent
198e2abfab
commit
2500d1e8cd
1 changed files with 3 additions and 2 deletions
|
|
@ -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})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue