seitime-frappe/frappe/patches/v14_0/update_github_endpoints.py
2021-11-08 20:17:07 +05:30

10 lines
215 B
Python

import frappe
import json
def execute():
if frappe.db.exists("Social Login Key", "github"):
frappe.db.set_value("Social Login Key", "github", "auth_url_data",
json.dumps({
"scope": "user:email"
})
)