mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: display application name over sign in form (#11500)
This commit is contained in:
@@ -5,6 +5,7 @@ import { PasswordSignInForm } from "./PasswordSignInForm";
|
|||||||
import { OAuthSignInForm } from "./OAuthSignInForm";
|
import { OAuthSignInForm } from "./OAuthSignInForm";
|
||||||
import { Alert } from "components/Alert/Alert";
|
import { Alert } from "components/Alert/Alert";
|
||||||
import { ErrorAlert } from "components/Alert/ErrorAlert";
|
import { ErrorAlert } from "components/Alert/ErrorAlert";
|
||||||
|
import { getApplicationName } from "utils/appearance";
|
||||||
|
|
||||||
export const Language = {
|
export const Language = {
|
||||||
emailLabel: "Email",
|
emailLabel: "Email",
|
||||||
@@ -80,10 +81,11 @@ export const SignInForm: FC<React.PropsWithChildren<SignInFormProps>> = ({
|
|||||||
authMethods?.github.enabled || authMethods?.oidc.enabled,
|
authMethods?.github.enabled || authMethods?.oidc.enabled,
|
||||||
);
|
);
|
||||||
const passwordEnabled = authMethods?.password.enabled ?? true;
|
const passwordEnabled = authMethods?.password.enabled ?? true;
|
||||||
|
const applicationName = getApplicationName();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div css={styles.root}>
|
<div css={styles.root}>
|
||||||
<h1 css={styles.title}>Sign in</h1>
|
<h1 css={styles.title}>{applicationName}</h1>
|
||||||
|
|
||||||
{Boolean(error) && (
|
{Boolean(error) && (
|
||||||
<div css={styles.alert}>
|
<div css={styles.alert}>
|
||||||
|
|||||||
Reference in New Issue
Block a user