diff --git a/package.json b/package.json index 49c80b1..586b33f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sikka/hajar", - "version": "1.1.47", + "version": "1.1.48", "description": "Toolkit to create SaaS applications", "author": "Sikka Software (http://sikka.io)", "license": "MIT", diff --git a/src/core/authentication/index.js b/src/core/authentication/index.js index 6b841dd..b62814c 100644 --- a/src/core/authentication/index.js +++ b/src/core/authentication/index.js @@ -266,8 +266,7 @@ class HajarAuth { }; } else { // User exists, perform login - - const customerData = await this.Customer.findOne({ uid: user._id }); + const customerData = await this.Customer.findOne({ profile: user._id }); return { success: true, user: { ...user.toObject() },