[Fix] Forgot password is not working (#6255)

This commit is contained in:
rohitwaghchaure 2018-10-15 14:53:10 +05:30 committed by Rushabh Mehta
parent b218a16dc3
commit b49e67982e

View file

@ -15,7 +15,6 @@ import re
from frappe.limits import get_limits
from frappe.website.utils import is_signup_enabled
from frappe.utils.background_jobs import enqueue
from six import string_types
STANDARD_USERS = ("Guest", "Administrator")
@ -802,9 +801,6 @@ def reset_password(user):
if user=="Administrator":
return 'not allowed'
if isinstance(send_email, string_types):
if send_email=='false': send_email = False
try:
user = frappe.get_doc("User", user)
if not user.enabled: