Skip to content

Commit

Permalink
Update src/account-db.js
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
lelemm and coderabbitai[bot] authored Nov 11, 2024
1 parent 859bec8 commit c3d3dff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/account-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c3d3dff

Please sign in to comment.