mirror of
https://github.com/plantroon/mx-puppet-xmpp.git
synced 2024-11-14 23:41:40 +00:00
Allow for passwords that contain spaces, fix #15
This commit is contained in:
parent
c57093f69b
commit
cacb1599e3
@ -117,7 +117,7 @@ async function run() {
|
|||||||
const retData = {
|
const retData = {
|
||||||
success: false,
|
success: false,
|
||||||
} as IRetData;
|
} as IRetData;
|
||||||
const [username, password] = str.split(" ");
|
const [username, password] = str.split(/ (.+)/, 2);
|
||||||
const data: any = {
|
const data: any = {
|
||||||
username,
|
username,
|
||||||
password,
|
password,
|
||||||
|
Loading…
Reference in New Issue
Block a user