mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-10 06:49:54 -06:00
Added check for running both OpenID and TOTP at the same time.
This commit is contained in:
@@ -42,6 +42,10 @@ function checkOpenIDRequirements() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (process.env.TOTP_ENABLED?.toLocaleLowerCase() === "true"){
|
||||
throw new OpenIDError("Cannot enable both OpenID and TOTP!");
|
||||
}
|
||||
|
||||
if (process.env.BASE_URL === undefined) {
|
||||
throw new OpenIDError("BASE_URL is undefined in .env!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user