Changed HASH_SALT to APP_SECRET.

This commit is contained in:
Mike Cao 2022-12-27 21:38:23 -08:00
parent cad0b73e42
commit 7bbed0e12b
5 changed files with 11 additions and 70 deletions

View file

@ -2,11 +2,10 @@ import { SubmitButton, Form, FormInput, FormRow, FormButtons, TextField } from '
import { useMutation } from '@tanstack/react-query';
import { useRef } from 'react';
import useApi from 'hooks/useApi';
import { getClientAuthToken } from 'lib/client';
import { DOMAIN_REGEX } from 'lib/constants';
export default function WebsiteEditForm({ websiteId, data, onSave }) {
const { post } = useApi(getClientAuthToken());
const { post } = useApi();
const { mutate, error } = useMutation(data => post(`/websites/${websiteId}`, data));
const ref = useRef(null);