diff --git a/beszel/site/src/components/login/auth-form.tsx b/beszel/site/src/components/login/auth-form.tsx index 4738b5c..9c8545e 100644 --- a/beszel/site/src/components/login/auth-form.tsx +++ b/beszel/site/src/components/login/auth-form.tsx @@ -1,5 +1,5 @@ -import { t } from "@lingui/core/macro"; -import { Trans } from "@lingui/react/macro"; +import { t } from "@lingui/core/macro" +import { Trans } from "@lingui/react/macro" import { cn } from "@/lib/utils" import { buttonVariants } from "@/components/ui/button" import { Input } from "@/components/ui/input" @@ -43,6 +43,14 @@ const showLoginFaliedToast = () => { }) } +const getAuthProviderIcon = (provider: AuthProviderInfo) => { + let { name } = provider + if (name.startsWith("oidc")) { + name = "oidc" + } + return prependBasePath(`/_/images/oauth2/${name}.svg`) +} + export function UserAuthForm({ className, isFirstRun, @@ -165,8 +173,8 @@ export function UserAuthForm({ }, []) return ( -