Disable skip button when strong password feature is enabled (#84211)

This commit is contained in:
linoman 2024-03-12 01:31:52 -06:00 committed by GitHub
parent e33e219a9a
commit 298384cea9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@ import React, { SyntheticEvent, useState } from 'react';
import { useForm } from 'react-hook-form';
import { selectors } from '@grafana/e2e-selectors';
import { config } from '@grafana/runtime';
import { Tooltip, Field, VerticalGroup, Button, Alert, useStyles2 } from '@grafana/ui';
import { getStyles } from '../Login/LoginForm';
@ -85,7 +86,7 @@ export const ChangePassword = ({ onSubmit, onSkip, showDefaultPasswordWarning }:
Submit
</Button>
{onSkip && (
{!config.auth.basicAuthStrongPasswordPolicy && onSkip && (
<Tooltip
content="If you skip you will be prompted to change password next time you log in."
placement="bottom"