mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 03:29:35 +00:00
23 lines
650 B
TypeScript
23 lines
650 B
TypeScript
import {
|
|
useGetUser
|
|
} from "@app/hooks/api";
|
|
import { AuthMethod } from "@app/hooks/api/users/types";
|
|
|
|
import { AuthMethodSection } from "../AuthMethodSection";
|
|
import { ChangePasswordSection } from "../ChangePasswordSection";
|
|
import { MFASection } from "../SecuritySection";
|
|
|
|
export const PersonalAuthTab = () => {
|
|
const { data: user } = useGetUser();
|
|
return (
|
|
<div>
|
|
{user && !user.authMethods.includes(AuthMethod.LDAP) && (
|
|
<>
|
|
<MFASection />
|
|
<AuthMethodSection />
|
|
</>
|
|
)}
|
|
<ChangePasswordSection />
|
|
</div>
|
|
);
|
|
} |