From c3d3dffccfa680115bc1e7da9588666222d6ef5c Mon Sep 17 00:00:00 2001 From: lelemm Date: Mon, 11 Nov 2024 09:40:44 -0300 Subject: [PATCH] Update src/account-db.js Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/account-db.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/account-db.js b/src/account-db.js index a10d28584..adf245fe3 100644 --- a/src/account-db.js +++ b/src/account-db.js @@ -50,6 +50,9 @@ export function getLoginMethod(req) { } export async function bootstrap(loginSettings) { + if (!loginSettings) { + return { error: 'invalid-login-settings' }; + } const passEnabled = 'password' in loginSettings; const openIdEnabled = 'openId' in loginSettings;