mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 16:40:30 +00:00
Add TRUST_SAML_EMAILS and TRUST_LDAP_EMAILS opts
This commit is contained in:
-2
@@ -149,8 +149,6 @@ export const OrgMembersTable = ({ handlePopUpOpen, setCompleteInviteLink }: Prop
|
||||
[members, searchMemberFilter]
|
||||
);
|
||||
|
||||
console.log("filterdUser: ", filterdUser);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Input
|
||||
|
||||
@@ -16,8 +16,16 @@ export const SignupSSO = ({ providerAuthToken }: Props) => {
|
||||
const [step, setStep] = useState(0);
|
||||
const [password, setPassword] = useState("");
|
||||
|
||||
const { username, email, organizationName, organizationSlug, firstName, lastName, authType } =
|
||||
jwt_decode(providerAuthToken) as any;
|
||||
const {
|
||||
username,
|
||||
email,
|
||||
organizationName,
|
||||
organizationSlug,
|
||||
firstName,
|
||||
lastName,
|
||||
authType,
|
||||
isEmailVerified
|
||||
} = jwt_decode(providerAuthToken) as any;
|
||||
|
||||
const renderView = () => {
|
||||
switch (step) {
|
||||
@@ -25,7 +33,7 @@ export const SignupSSO = ({ providerAuthToken }: Props) => {
|
||||
return (
|
||||
<UserInfoSSOStep
|
||||
username={username}
|
||||
email={email}
|
||||
isEmailVerified={isEmailVerified}
|
||||
name={`${firstName} ${lastName}`}
|
||||
providerOrganizationName={organizationName}
|
||||
password={password}
|
||||
|
||||
@@ -26,7 +26,7 @@ const client = new jsrp.client();
|
||||
type Props = {
|
||||
setStep: (step: number) => void;
|
||||
username: string;
|
||||
email?: string;
|
||||
isEmailVerified?: boolean;
|
||||
password: string;
|
||||
setPassword: (value: string) => void;
|
||||
name: string;
|
||||
@@ -60,7 +60,7 @@ type Errors = {
|
||||
*/
|
||||
export const UserInfoSSOStep = ({
|
||||
username,
|
||||
email,
|
||||
isEmailVerified,
|
||||
name,
|
||||
providerOrganizationName,
|
||||
password,
|
||||
@@ -204,13 +204,13 @@ export const UserInfoSSOStep = ({
|
||||
localStorage.setItem("orgData.id", orgId);
|
||||
localStorage.setItem("projectData.id", project.id);
|
||||
|
||||
if (email) {
|
||||
if (isEmailVerified) {
|
||||
// move to backup PDF step
|
||||
setStep(3);
|
||||
} else {
|
||||
// move to verify email
|
||||
await sendEmailVerificationCode();
|
||||
setStep(1);
|
||||
} else {
|
||||
// move to backup PDF step
|
||||
setStep(3);
|
||||
}
|
||||
} catch (error) {
|
||||
setIsLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user