mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
Added check for running both OpenID and TOTP at the same time.
This commit is contained in:
parent
55b0f0e3f4
commit
d8c8fe0a6d
@ -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!");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user