fix(ci): the second round of the quick-win checks on the server

oidc_auto_redirect is managed-locked in the registry too, costs_mode is read
as the mode it is, the days of a dated trip are read through the factories,
and the dashboard's country order moves out of the atlas service into a
module of its own, so the service keeps its size.
This commit is contained in:
Maurice
2026-11-13 12:57:56 +01:00
parent c2ba78253d
commit 71cc97822a
9 changed files with 93 additions and 47 deletions
+2 -5
View File
@@ -308,8 +308,7 @@ export class AuthService {
const userCount = await this.usersRepo.countNonGuest();
const isDemo = readEnv().demo.enabled;
const toggles = await this.resolveAuthToggles();
// One directory deeper than the legacy src/services location — the extra
// '../' keeps resolving to the workspace package.json.
// One directory deeper than the old src/services, so the extra '../' still reaches the package.json.
const version: string = readEnv().app.appVersion ?? require('../../../package.json').version;
// Asked through the same resolver the search itself uses, so the client can
// never show Google features that rest on a key this caller does not get —
@@ -359,9 +358,7 @@ export class AuthService {
password_registration: isDemo ? false : toggles.password_registration,
oidc_login: toggles.oidc_login,
oidc_registration: isDemo ? false : toggles.oidc_registration,
// Read by the login page only where password login is off: anything but
// 'false' keeps the redirect every such instance had before (#2925).
oidc_auto_redirect: settings.get('oidc_auto_redirect') !== 'false',
oidc_auto_redirect: settings.get('oidc_auto_redirect') !== 'false', // read only without password login (#2925)
// Passkey login: the instance toggle + whether a usable RP ID resolves for
// this deployment. The login page shows the passkey button only when both
// are true. `passkey_configured` stays a pure boolean — it never leaks the