Skip to content
Snippets Groups Projects
Unverified Commit dd7e12a1 authored by Noah Moss's avatar Noah Moss Committed by GitHub
Browse files

prevent sending password reset email when LDAP is active (#16349)

parent e8378db3
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,12 @@ export default class ForgotPasswordApp extends Component {
const { location } = this.props;
const { sentNotification } = this.state;
const emailConfigured = MetabaseSettings.isEmailConfigured();
const ldapEnabled = MetabaseSettings.ldapEnabled();
const canResetPassword = emailConfigured && !ldapEnabled;
return (
<AuthLayout>
{!emailConfigured ? (
{!canResetPassword ? (
<div>
<h3 className="my4">{t`Please contact an administrator to have them reset your password`}</h3>
<BackToLogin />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment