diff --git a/client/js/api.js b/client/js/api.js index e2932f2..535b880 100644 --- a/client/js/api.js +++ b/client/js/api.js @@ -84,7 +84,10 @@ class Api extends events.EventTarget { if (this.userName && this.userPassword) { req.auth( this.userName, - this.userPassword); + encodeURIComponent(this.userPassword) + .replace(/%([0-9A-F]{2})/g, (match, p1) => { + return String.fromCharCode('0x' + p1); + })); } } catch (e) { reject({