encode login str

This commit is contained in:
Vyacheslav.Sviridov
2022-10-09 18:42:16 +06:00
parent 16a9e3de60
commit e16cdcdb36
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ const axiosHttpClient = require('./AxiosHttpClient')
class ENM {
constructor(username, password, url) {
this.logoutUrl = '/logout'
this.loginUrl = `/login?IDToken1=${username}&IDToken2=${password}`
this.loginUrl = encodeURI(`/login?IDToken1=${username}&IDToken2=${password}`)
this.commands = []
this.choices = []
this.httpClient = axiosHttpClient(url)

View File

@@ -1,6 +1,6 @@
{
"name": "enm-cli",
"version": "1.0.4a",
"version": "1.0.4b",
"description": "This is a cli application for Ericsson Network Manager (ENM)",
"bin": "./bin/enm-cli.js",
"scripts": {