toggle generated user/pass

This commit is contained in:
FTCHD
2025-02-01 21:51:13 +02:00
parent abcea2af9b
commit b738a7c25d
2 changed files with 6 additions and 4 deletions
+4 -4
View File
@@ -1,7 +1,6 @@
import { getCurrentWindow } from '@tauri-apps/api/window'
import { ask, message } from '@tauri-apps/plugin-dialog'
import { debug, error, info, trace, warn } from '@tauri-apps/plugin-log'
import { platform } from '@tauri-apps/plugin-os'
import { exit } from '@tauri-apps/plugin-process'
import type { Command } from '@tauri-apps/plugin-shell'
import { validateLicense } from './lib/license'
@@ -116,9 +115,10 @@ async function startRclone() {
const command = (await rcloneCommandFn([
'rcd',
...(platform() === 'macos'
? ['--rc-no-auth'] // webkit doesn't allow for credentials in the url
: ['--rc-user', 'admin', '--rc-pass', sessionPassword]),
// ...(platform() === 'macos'
// ? ['--rc-no-auth'] // webkit doesn't allow for credentials in the url
// : ['--rc-user', 'admin', '--rc-pass', sessionPassword]),
'--rc-no-auth',
'--rc-serve',
// defaults
// '-rc-addr',