Skip to content

Commit

Permalink
fix: changed api secret field type to password
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Sep 17, 2024
1 parent e79c5d4 commit b9f2730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"depends_on": "eval:doc.enabled && doc.is_erpnext_in_different_site",
"fieldname": "api_secret",
"fieldtype": "Data",
"fieldtype": "Password",
"label": "API Secret",
"mandatory_depends_on": "is_erpnext_in_different_site"
},
Expand Down Expand Up @@ -101,7 +101,7 @@
"index_web_pages_for_search": 1,
"issingle": 1,
"links": [],
"modified": "2024-09-16 21:30:40.097360",
"modified": "2024-09-17 19:21:11.060901",
"modified_by": "Administrator",
"module": "FCRM",
"name": "ERPNext CRM Settings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create_crm_form_script(self):
def get_erpnext_site_client(erpnext_crm_settings):
site_url = erpnext_crm_settings.erpnext_site_url
api_key = erpnext_crm_settings.api_key
api_secret = erpnext_crm_settings.api_secret
api_secret = erpnext_crm_settings.get_password("api_secret", raise_exception=False)

return FrappeClient(
site_url, api_key=api_key, api_secret=api_secret
Expand Down

0 comments on commit b9f2730

Please sign in to comment.