Merge pull request #418 from thelounge/xpaw/tabs

Use tabs when saving user configs
This commit is contained in:
Jérémie Astori 2016-06-19 13:48:51 -04:00 committed by GitHub
commit 34aed75ebd
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ ClientManager.prototype.addUser = function(name, password) {
};
fs.writeFileSync(
Helper.getUserConfigPath(name),
JSON.stringify(user, null, " ")
JSON.stringify(user, null, "\t")
);
} catch (e) {
log.error("Failed to add user " + name, e);
@ -108,7 +108,7 @@ ClientManager.prototype.updateUser = function(name, opts) {
_.assign(user, opts);
fs.writeFileSync(
Helper.getUserConfigPath(name),
JSON.stringify(user, null, " ")
JSON.stringify(user, null, "\t")
);
} catch (e) {
log.error("Failed to update user", e);

View File

@ -26,7 +26,7 @@ program
user.token = null; // Will be regenerated when the user is loaded
fs.writeFileSync(
file,
JSON.stringify(user, null, " ")
JSON.stringify(user, null, "\t")
);
log.info("Successfully reset password for '" + name + "'.");
});