forked from baron/baron-sso
code check 오류 수정
This commit is contained in:
@@ -34,7 +34,12 @@ import {
|
||||
} from "../../components/ui/card";
|
||||
import { Input } from "../../components/ui/input";
|
||||
import { Label } from "../../components/ui/label";
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../components/ui/tabs";
|
||||
import {
|
||||
Tabs,
|
||||
TabsContent,
|
||||
TabsList,
|
||||
TabsTrigger,
|
||||
} from "../../components/ui/tabs";
|
||||
import { toast } from "../../components/ui/use-toast";
|
||||
import {
|
||||
type UserSummary,
|
||||
@@ -311,10 +316,12 @@ function UserDetailPage() {
|
||||
queryFn: () => fetchTenants(100, 0),
|
||||
});
|
||||
const tenants = tenantsData?.items ?? [];
|
||||
const { data: passwordPolicy, isLoading: isPasswordPolicyLoading } = useQuery({
|
||||
queryKey: ["password-policy"],
|
||||
queryFn: fetchPasswordPolicy,
|
||||
});
|
||||
const { data: passwordPolicy, isLoading: isPasswordPolicyLoading } = useQuery(
|
||||
{
|
||||
queryKey: ["password-policy"],
|
||||
queryFn: fetchPasswordPolicy,
|
||||
},
|
||||
);
|
||||
|
||||
const {
|
||||
register,
|
||||
@@ -978,9 +985,10 @@ function UserDetailPage() {
|
||||
"msg.userfront.signup.policy.summary",
|
||||
"보안 정책: {{rules}}",
|
||||
{
|
||||
rules: buildPasswordPolicyDescription(
|
||||
passwordPolicy,
|
||||
),
|
||||
rules:
|
||||
buildPasswordPolicyDescription(
|
||||
passwordPolicy,
|
||||
),
|
||||
},
|
||||
)}
|
||||
</p>
|
||||
@@ -988,9 +996,7 @@ function UserDetailPage() {
|
||||
<div className="relative flex-1">
|
||||
<Input
|
||||
id="manualPassword"
|
||||
type={
|
||||
isManualPasswordVisible ? "text" : "password"
|
||||
}
|
||||
type={isManualPasswordVisible ? "text" : "password"}
|
||||
value={manualPassword}
|
||||
placeholder=" "
|
||||
className="peer pr-12 pt-5"
|
||||
@@ -1005,7 +1011,10 @@ function UserDetailPage() {
|
||||
htmlFor="manualPassword"
|
||||
className="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 bg-background px-1 text-sm text-muted-foreground transition-all peer-placeholder-shown:top-1/2 peer-placeholder-shown:text-sm peer-focus:top-0 peer-focus:translate-y-[-50%] peer-focus:text-xs peer-[&:not(:placeholder-shown)]:top-0 peer-[&:not(:placeholder-shown)]:translate-y-[-50%] peer-[&:not(:placeholder-shown)]:text-xs"
|
||||
>
|
||||
{t("ui.userfront.reset.new_password", "새 비밀번호")}
|
||||
{t(
|
||||
"ui.userfront.reset.new_password",
|
||||
"새 비밀번호",
|
||||
)}
|
||||
</label>
|
||||
<Button
|
||||
type="button"
|
||||
@@ -1032,9 +1041,7 @@ function UserDetailPage() {
|
||||
<div className="relative flex-1">
|
||||
<Input
|
||||
id="manualPasswordConfirm"
|
||||
type={
|
||||
isManualPasswordVisible ? "text" : "password"
|
||||
}
|
||||
type={isManualPasswordVisible ? "text" : "password"}
|
||||
value={manualPasswordConfirm}
|
||||
placeholder=" "
|
||||
className="peer pr-12 pt-5"
|
||||
|
||||
Reference in New Issue
Block a user