From 043ce4bb6059d67200230ac15f61a9243ce98f5e Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Mon, 8 Jan 2024 19:13:25 +0530 Subject: [PATCH] fix: use get_password for api_secret field --- frappe/push_notification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/push_notification.py b/frappe/push_notification.py index d87716af5a..d5c74aa275 100644 --- a/frappe/push_notification.py +++ b/frappe/push_notification.py @@ -184,7 +184,7 @@ class PushNotification: """ notification_settings = frappe.get_doc("Push Notification Settings") if notification_settings.api_key and notification_settings.api_secret: - return notification_settings.api_key, notification_settings.api_secret + return notification_settings.api_key, notification_settings.get_password('api_secret') else: # Generate new credentials token = frappe.generate_hash(length=48)