[Fix] Forgot password is not working (#6255)
This commit is contained in:
parent
b218a16dc3
commit
b49e67982e
1 changed files with 0 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue