mirror of
https://github.com/unraid/api.git
synced 2026-02-21 07:28:33 -06:00
fix: entropy on crypt creation
This commit is contained in:
@@ -60,11 +60,12 @@ const confirmDelete = (remote: string) => {
|
||||
};
|
||||
|
||||
const openCryptModal = (remote: { name: string, type: string }) => {
|
||||
const entropy = Math.random().toString(36).substring(2, 8);
|
||||
selectedRemote.value = remote;
|
||||
initialFormState.value = {
|
||||
configStep: 0,
|
||||
showAdvanced: false,
|
||||
name: `${remote.name}-crypt`,
|
||||
name: `${remote.name}-crypt-${entropy}`,
|
||||
type: 'crypt',
|
||||
parameters: {
|
||||
remote: `${remote.name}:`,
|
||||
|
||||
Reference in New Issue
Block a user