Merge pull request #6125 from codingCoffee/soc_login

fix(patch): refactor social login keys
This commit is contained in:
Ameya Shenoy 2018-09-21 16:08:36 +05:30 committed by GitHub
commit d55ce6ab05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ def insert_user_social_login(user, modified_by, provider, idx, userid=None, user
VALUES ({values})
""".format(
source_cols = "`" + "`, `".join(source_cols) + "`",
values= "'" + "', '".join(values) + "'"
values= "'" + "', '".join([frappe.db.escape(d) for d in values]) + "'"
)
frappe.db.sql(query)