mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-14 00:19:16 +01:00
fix: password auth metrics (#8735)
This commit is contained in:
parent
cb316f012c
commit
61e297dd22
@ -224,7 +224,10 @@ export class InstanceStatsService {
|
||||
'unleash.auth.simple',
|
||||
);
|
||||
|
||||
return settings?.disabled !== false;
|
||||
return (
|
||||
typeof settings?.disabled === 'undefined' ||
|
||||
settings.disabled === false
|
||||
);
|
||||
}
|
||||
|
||||
async hasSCIM(): Promise<boolean> {
|
||||
|
@ -408,7 +408,7 @@ export function registerPrometheusMetrics(
|
||||
});
|
||||
|
||||
dbMetrics.registerGaugeDbMetric({
|
||||
name: 'password_auth',
|
||||
name: 'password_auth_enabled',
|
||||
help: 'Whether password auth is enabled',
|
||||
query: () => instanceStatsService.hasPasswordAuth(),
|
||||
map: (result) => ({ value: result ? 1 : 0 }),
|
||||
|
Loading…
Reference in New Issue
Block a user