Added check for running both OpenID and TOTP at the same time.

This commit is contained in:
Chesspro13 2024-09-09 12:01:41 -07:00
parent 55b0f0e3f4
commit d8c8fe0a6d
No known key found for this signature in database
GPG Key ID: F8A4BFD557BAB5D3

View File

@ -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!");
}