Skip to content

Commit

Permalink
fix: set new default ttl to 72 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo authored Oct 16, 2023
1 parent 368a6de commit 0d175a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/routes/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import { createSecret, burnSecret } from '../../api/secret';
import { generateKey, encrypt } from '../../../shared/helpers/crypto';
import { useTranslation } from 'react-i18next';

const DEFAULT_TTL = 259200; // 3 days - 72 hours

const Home = () => {
const form = useForm({
initialValues: {
Expand All @@ -52,14 +54,14 @@ const Home = () => {
maxViews: 1,
files: [],
password: '',
ttl: 14400,
ttl: DEFAULT_TTL,
allowedIp: '',
preventBurn: false,
},
});

const [text, setText] = useState('');
const [ttl, setTTL] = useState(14400);
const [ttl, setTTL] = useState(DEFAULT_TTL);
const [enablePassword, setOnEnablePassword] = useState(false);
const [secretId, setSecretId] = useState('');
const [encryptionKey, setEncryptionKey] = useState('');
Expand Down

0 comments on commit 0d175a6

Please sign in to comment.