Skip to content

Commit

Permalink
fix(saas-signup): use clean instead of sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jun 29, 2024
1 parent 54ef1a3 commit 5d118a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions press/api/saas.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def account_request(
"""
return: Stripe setup intent and AR key if stripe flow, else None
"""
from frappe.utils import sanitize_html
from frappe.utils.html_utils import clean_html

email = email.strip().lower()
frappe.utils.validate_email_address(email, True)
Expand Down Expand Up @@ -63,8 +63,8 @@ def account_request(
"subdomain": subdomain,
"email": email,
"role": "Press Admin",
"first_name": sanitize_html(first_name),
"last_name": sanitize_html(last_name),
"first_name": clean_html(first_name),
"last_name": clean_html(last_name),
"country": country,
"url_args": url_args or json.dumps({}),
"send_email": True,
Expand Down

0 comments on commit 5d118a9

Please sign in to comment.