mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
requested changes
This commit is contained in:
@@ -66,7 +66,6 @@ export const useDeleteCmek = () => {
|
||||
export const useCmekEncrypt = () => {
|
||||
return useMutation({
|
||||
mutationFn: async ({ keyId, plaintext, isBase64Encoded }: TCmekEncrypt) => {
|
||||
console.log("CALLING CMEK ENCRYPT");
|
||||
const { data } = await apiRequest.post<TCmekEncryptResponse>(
|
||||
`/api/v1/kms/keys/${keyId}/encrypt`,
|
||||
{
|
||||
|
||||
@@ -49,15 +49,6 @@ export const SignUpPage = () => {
|
||||
// avoid multi submission
|
||||
if (isSubmitting) return;
|
||||
try {
|
||||
console.log(
|
||||
"Creating admin user...",
|
||||
JSON.stringify({
|
||||
email,
|
||||
password,
|
||||
fipsEnabled: config.fipsEnabled
|
||||
})
|
||||
);
|
||||
|
||||
const { privateKey, ...userPass } = await generateUserPassKey(
|
||||
email,
|
||||
password,
|
||||
|
||||
@@ -95,6 +95,7 @@ export const UserInfoSSOStep = ({
|
||||
if (!errorCheck) {
|
||||
// Generate a random pair of a public and a private key
|
||||
const { publicKey, privateKey } = await generateKeyPair(config.fipsEnabled);
|
||||
localStorage.setItem("PRIVATE_KEY", privateKey);
|
||||
|
||||
client.init(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user