Skip to content

Commit

Permalink
Removed Non Prod message for login
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmcmaster committed Dec 6, 2024
1 parent fef5458 commit 58243e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion controller/components/StartTestForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const notAuthorizedMessageOpenId = (username?: string | null): JSX.Element => <I
{username ? `'${username}'` : "User"} is not authorized to run tests.<br/>
Please request 'Pewpew - User' permission if you need to be able to run tests.
</p>
<Warning>DO NOT request 'Non Prod' Permissions. Those are for internal authentication testing only.</Warning>
</Column>
</Info>;

Expand Down
6 changes: 3 additions & 3 deletions controller/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
SESSION_EXPIRED_MESSAGE,
logout as authLogout
} from "./api/util/authclient";
import { Alert, Danger, Info, Warning } from "../components/Alert";
import { Alert, Danger, Info } from "../components/Alert";
import type {
GetServerSideProps,
GetServerSidePropsContext,
Expand Down Expand Up @@ -48,8 +48,8 @@ export interface LoginProps {
errorLoading: string | undefined;
}

const NOT_AUTHORIZED_MESSAGE_AUTHENTICATION: JSX.Element = <><p>Please request 'Pewpew - User' permission if you need to be able to run tests.</p><Warning>DO NOT request 'Non Prod' Permissions. Those are for internal authentication testing only.</Warning></>;
const ACCESS_DENIED_AUTHENTICATION_MESSAGE: JSX.Element = <><p>Please request either the 'Pewpew Test - User' (run tests) or 'Pewpew - Read Only' (view results) permission.</p><Warning>DO NOT request 'Non Prod' Permissions. Those are for internal authentication testing only.</Warning></>;
const NOT_AUTHORIZED_MESSAGE_AUTHENTICATION: JSX.Element = <><p>Please request 'Pewpew - User' permission if you need to be able to run tests.</p></>;
const ACCESS_DENIED_AUTHENTICATION_MESSAGE: JSX.Element = <><p>Please request either the 'Pewpew Test - User' (run tests) or 'Pewpew - Read Only' (view results) permission.</p></>;

const Login = ({ token, redirectUrl, errorLoading }: LoginProps): JSX.Element => {
log("redirectUrl: " + redirectUrl, LogLevel.DEBUG);
Expand Down

0 comments on commit 58243e9

Please sign in to comment.