[fix] encrypted password in Hub User child record by frappe/frappe#6048

- use save() instead of insert()
This commit is contained in:
Prateeksha Singh 2018-09-02 19:45:56 +05:30
parent 68129df74c
commit a094c0f3f1

View File

@ -65,7 +65,7 @@ class MarketplaceSettings(Document):
'password': hub_user.get('password') 'password': hub_user.get('password')
}) })
self.insert() self.save()
def get_hub_user(self, user): def get_hub_user(self, user):
'''Return the Hub User doc from the `users` table if password is set''' '''Return the Hub User doc from the `users` table if password is set'''