Skip to content

Commit

Permalink
disable org name for single tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyliu committed Aug 15, 2024
1 parent 00c99a4 commit 02ef660
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pages/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useNavigate } from "react-router-dom";

import { useForgotPasswordLink } from "apiQueries/useForgotPasswordLink";
import { ORG_NAME_INFO_TEXT } from "constants/settings";
import { RECAPTCHA_SITE_KEY } from "constants/envVariables";
import { RECAPTCHA_SITE_KEY, SINGLE_TENANT_MODE } from "constants/envVariables";
import { ErrorWithExtras } from "components/ErrorWithExtras";
import { InfoTooltip } from "components/InfoTooltip";
import { getSdpTenantName } from "helpers/getSdpTenantName";
Expand Down Expand Up @@ -96,6 +96,7 @@ export const ForgotPassword = () => {
onChange={(e) => setOrganizationName(e.target.value)}
value={organizationName}
type="text"
disabled={SINGLE_TENANT_MODE}
/>
<Input
fieldSize="sm"
Expand Down
7 changes: 6 additions & 1 deletion src/pages/ResetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "@stellar/design-system";
import { useNavigate } from "react-router-dom";

import { SINGLE_TENANT_MODE } from "constants/envVariables";
import { ORG_NAME_INFO_TEXT } from "constants/settings";
import { useResetPassword } from "apiQueries/useResetPassword";
import { validateNewPassword } from "helpers/validateNewPassword";
Expand Down Expand Up @@ -103,7 +104,10 @@ export const ResetPassword = () => {
a combination of uppercase letters, lowercase letters and
numbers
</li>
<li>at least one symbol from: <span className="CodeSnippet">! @ # $ % ^ &amp; *</span></li>
<li>
at least one symbol from:{" "}
<span className="CodeSnippet">! @ # $ % ^ &amp; *</span>
</li>
</ul>
</div>
</div>
Expand All @@ -120,6 +124,7 @@ export const ResetPassword = () => {
onChange={(e) => setOrganizationName(e.target.value)}
value={organizationName}
type="text"
disabled={SINGLE_TENANT_MODE}
/>

<Input
Expand Down

0 comments on commit 02ef660

Please sign in to comment.