From f39fa33b8373be8c41b64de6aaa80e3ccce558e7 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sat, 31 Oct 2020 02:53:48 +0100 Subject: [PATCH] User sync fixes --- modules/account/back/methods/user-account/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account/back/methods/user-account/sync.js b/modules/account/back/methods/user-account/sync.js index 1bfbcc3da..6de3d5c8b 100644 --- a/modules/account/back/methods/user-account/sync.js +++ b/modules/account/back/methods/user-account/sync.js @@ -186,7 +186,7 @@ module.exports = Self => { if (await $.user.exists(user.id)) await $.user.replaceById(user.id, appUser); - else + else if (bcryptPassword) await $.user.upsert(appUser); } else await $.user.destroyAll({username: userName});