@lifeaitools/clauth 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/serve.js +1 -1
- package/package.json +1 -1
package/cli/commands/serve.js
CHANGED
|
@@ -3452,7 +3452,7 @@ function createServer(initPassword, whitelist, port, tunnelHostnameInit = null,
|
|
|
3452
3452
|
if (fs.existsSync(autostartDir)) {
|
|
3453
3453
|
try {
|
|
3454
3454
|
const pwEscaped = pw.replace(/'/g, "''");
|
|
3455
|
-
const psExpr = `[Convert]::ToBase64String([Security.Cryptography.ProtectedData]::Protect([Text.Encoding]::UTF8.GetBytes('${pwEscaped}'),$null,'CurrentUser'))`;
|
|
3455
|
+
const psExpr = `Add-Type -AssemblyName System.Security; [Convert]::ToBase64String([Security.Cryptography.ProtectedData]::Protect([Text.Encoding]::UTF8.GetBytes('${pwEscaped}'),$null,'CurrentUser'))`;
|
|
3456
3456
|
const psExe = process.env.SystemRoot
|
|
3457
3457
|
? `${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
|
|
3458
3458
|
: "powershell.exe";
|