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
+2
View File
@@ -6,6 +6,8 @@ import { useStore } from '../store'
const SUPPORRTED_BACKENDS = ['sftp', 's3', 'b2', 'drive'] const SUPPORRTED_BACKENDS = ['sftp', 's3', 'b2', 'drive']
function getAuthHeader() { function getAuthHeader() {
return
if (platform() === 'macos') { if (platform() === 'macos') {
return return
} }
+4 -4
View File
@@ -1,7 +1,6 @@
import { getCurrentWindow } from '@tauri-apps/api/window' import { getCurrentWindow } from '@tauri-apps/api/window'
import { ask, message } from '@tauri-apps/plugin-dialog' import { ask, message } from '@tauri-apps/plugin-dialog'
import { debug, error, info, trace, warn } from '@tauri-apps/plugin-log' 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 { exit } from '@tauri-apps/plugin-process'
import type { Command } from '@tauri-apps/plugin-shell' import type { Command } from '@tauri-apps/plugin-shell'
import { validateLicense } from './lib/license' import { validateLicense } from './lib/license'
@@ -116,9 +115,10 @@ async function startRclone() {
const command = (await rcloneCommandFn([ const command = (await rcloneCommandFn([
'rcd', 'rcd',
...(platform() === 'macos' // ...(platform() === 'macos'
? ['--rc-no-auth'] // webkit doesn't allow for credentials in the url // ? ['--rc-no-auth'] // webkit doesn't allow for credentials in the url
: ['--rc-user', 'admin', '--rc-pass', sessionPassword]), // : ['--rc-user', 'admin', '--rc-pass', sessionPassword]),
'--rc-no-auth',
'--rc-serve', '--rc-serve',
// defaults // defaults
// '-rc-addr', // '-rc-addr',