From bba24c84f5ffa67364cc255835fdbda3155ebbe3 Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Thu, 10 Feb 2022 11:09:52 +0100 Subject: [PATCH] . --- website/server/models/user/hooks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/models/user/hooks.js b/website/server/models/user/hooks.js index 4f0e392fcf..1c94fdbb90 100644 --- a/website/server/models/user/hooks.js +++ b/website/server/models/user/hooks.js @@ -40,7 +40,7 @@ schema.plugin(baseModel, { if (plainObj.auth && plainObj.auth.local && originalDoc.auth.local.hashed_password) { plainObj.auth.local.has_password = true; - } else if (plainObj.auth && plainObj.auth.local) { + } else if (plainObj.auth && plainObj.auth.local && originalDoc.auth.local.email) { plainObj.auth.local.has_password = false; }