fix: use get_password for api_secret field
This commit is contained in:
parent
0fc6b6f6ed
commit
043ce4bb60
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue