toggle generated user/pass
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user