fix(smb): use long form params username / password instead of user / pass
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
#674
This commit is contained in:
parent
a039bb478e
commit
bad5f78991
1 changed files with 2 additions and 2 deletions
|
|
@ -42,12 +42,12 @@ const mount = async (config: BackendConfig, path: string) => {
|
|||
const options = [`port=${config.port}`, `uid=${uid}`, `gid=${gid}`];
|
||||
|
||||
if (config.guest) {
|
||||
options.push("user=guest", "pass=");
|
||||
options.push("username=guest", "password=");
|
||||
} else {
|
||||
const password = await cryptoUtils.resolveSecret(config.password ?? "");
|
||||
const safePassword = password.replace(/\\/g, "\\\\").replace(/,/g, "\\,");
|
||||
|
||||
options.push(`user=${config.username ?? "user"}`, `pass=${safePassword}`);
|
||||
options.push(`username=${config.username ?? "user"}`, `password=${safePassword}`);
|
||||
}
|
||||
|
||||
if (config.domain) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue