Commit b8a78616 authored by Big Bad Waffle's avatar Big Bad Waffle

can now setPassword on usernames with spaces


(cherry picked from commit fab8989b)
parent 14bb8833
......@@ -568,7 +568,10 @@ module.exports = {
setPassword: async function (config) {
let keys = Object.keys(config);
let username = keys[0];
let username = keys[0]
.split('_')
.join(' ');
let hashedPassword = keys[1];
await io.setAsync({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment