add 2fa type tracking to credentials (#3647)

This commit is contained in:
pedrohsdb
2025-10-08 11:38:34 -07:00
committed by GitHub
parent a61ff4cb4f
commit fc0f2b87ca
9 changed files with 123 additions and 6 deletions

View File

@@ -27,6 +27,7 @@ const PASSWORD_CREDENTIAL_INITIAL_VALUES = {
username: "",
password: "",
totp: "",
totp_type: "none" as "none" | "authenticator" | "email" | "text",
};
const CREDIT_CARD_CREDENTIAL_INITIAL_VALUES = {
@@ -156,6 +157,7 @@ function CredentialsModal({ onCredentialCreated }: Props) {
username,
password,
totp: totp === "" ? null : totp,
totp_type: passwordCredentialValues.totp_type,
},
});
} else if (type === CredentialModalTypes.CREDIT_CARD) {