[fix] reuse user.reset_password in RFQ

This commit is contained in:
Anand Doshi 2016-06-13 17:23:18 +05:30
parent dd7524f844
commit 7f8142d30d

View File

@ -78,13 +78,8 @@ class RequestforQuotation(BuyingController):
'first_name': rfq_supplier.supplier_name,
'user_type': 'Website User'
})
# reset password
key = random_string(32)
update_password_link = get_url("/update-password?key=" + key)
user.reset_password_key = key
user.redirect_url = link
user.save(ignore_permissions=True)
update_password_link = user.reset_password()
return user, update_password_link