Rename PERUSER => PER_USER

This commit is contained in:
Cohee
2024-10-09 01:37:34 +03:00
parent 5765ea8500
commit b9375ed7ea
3 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ const KEY_PREFIX = 'user:';
const AVATAR_PREFIX = 'avatar:';
const ENABLE_ACCOUNTS = getConfigValue('enableUserAccounts', false);
const AUTHELIA_AUTH = getConfigValue('autheliaAuth', false);
const PERUSER_BASIC_AUTH = getConfigValue('perUserBasicAuth', false);
const PER_USER_BASIC_AUTH = getConfigValue('perUserBasicAuth', false);
const ANON_CSRF_SECRET = crypto.randomBytes(64).toString('base64');
/**
@@ -588,7 +588,7 @@ async function tryAutoLogin(request) {
return true;
}
if (PERUSER_BASIC_AUTH && await basicUserLogin(request)) {
if (PER_USER_BASIC_AUTH && await basicUserLogin(request)) {
return true;
}
}