Commit Graph

38 Commits

Author SHA1 Message Date
Jérémie Astori
1dc92d8934
Enforce dangling commas with ESLint
¯\_(ツ)_/¯
2017-11-15 01:35:15 -05:00
Pavel Djundik
252dca3d3f
Only create config folder in 'start' command
Fixes #520.
Fixes #1288.
2017-08-26 12:04:13 -04:00
Jérémie Astori
ed68ff4a34
Make sure CLI does not crash on undefined.length when we figured out users could not be read already 2017-08-23 13:21:15 -04:00
Jérémie Astori
aa49856446
Warn when adding or listing users in public mode 2017-08-23 13:21:14 -04:00
Jérémie Astori
98bfe349d9
Add documentation for LOUNGE_HOME environment variable in the CLI helper 2017-08-21 01:49:32 -04:00
Jérémie Astori
410eff428b Prompt admin for user log at user creation 2017-02-01 01:26:19 -05:00
Jérémie Astori
770ede0587 Define a common helper for prompting to the user consistently 2016-12-16 22:46:14 -05:00
Jérémie Astori
baf3348cda Normalize colors and content of the CLI tools 2016-12-15 01:13:43 -05:00
Max Leiter
d4554d2fa7 Do not accept empty password when adding new user; closes #316 2016-12-13 20:50:15 -08:00
Pavel Djundik
c5e0dee3a3 Change bcrypt rounds from 8 to 11 2016-10-22 09:24:27 +03:00
Jérémie Astori
caa46042bf Enforce strict mode across all JS files with ESLint
Several ES6 additions are only available in strict mode. Example:
> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Strict mode was also enabled in a few of our files already, and it is a good thing to have anyway.
2016-10-09 15:14:02 -04:00
Daniel
3a2d97af6a Supersede mkdirp with fs-extra.
Ensure USERS_PATH exists at start.

Remove unnecessary USER_PATH check.

Use fs-extra's copy to write default config.
2016-06-11 19:35:40 +01:00
Pavel Djundik
d725bf0f70 Remove permissions test and do not suggest using sudo 2016-05-15 17:02:47 -04:00
Jérémie Astori
fe85873f1e Replace all concatenated paths with Node's path.join 2016-05-15 17:01:10 -04:00
Pavel Djundik
e75a8f40a6 Stricter eslint rule for curly brackets 2016-05-01 12:41:17 +03:00
Pavel Djundik
ede3131168 Add global logging helper 2016-04-27 00:05:55 +03:00
William Boman
8293497ae9 command-line/add,reset: reword password prompt
This makes the password prompts not look like a root access password prompt.
2016-04-03 20:47:45 +02:00
William Boman
8fdfd70c7e Comply with ESLint 2015-10-26 03:01:47 +01:00
Mattias Erming
1dc9929cf7 Remove password argument from add command 2014-10-27 22:55:20 +01:00
Mattias Erming
e914ed50eb Fix '--home' option 2014-10-14 22:53:26 +02:00
Mattias Erming
1a620e1d54 Change 'users/' folder structure 2014-10-14 22:05:16 +02:00
Mattias Erming
2ed7d6364c Added '--home <path>' option 2014-10-03 16:33:44 -07:00
Mattias Erming
316fba3c08 Use 'bcrypt-nodejs' package 2014-10-03 02:57:35 -07:00
Mattias Erming
216030710a Minor changes 2014-09-16 10:33:15 -07:00
Mattias Erming
c3552319cd Update 'add' command 2014-09-15 14:31:25 -07:00
Sascha Depold
24803a73d7 Remove legacy access to home variable 2014-09-14 07:08:08 +02:00
Mattias Erming
0d38f004d9 Add missing require 2014-09-13 14:55:07 -07:00
Mattias Erming
41027adc69 Normalize line endings 2014-09-13 14:29:45 -07:00
YuviPanda
77484ccdf3 Remove duplicate definition of path variable 2014-09-13 18:51:10 +01:00
Mattias Erming
ead12493ff Merge pull request #123 from sdepold/feature/configurable-home
Load home directory from helper and make it configurable.
2014-09-13 18:29:33 +02:00
YuviPanda
8bbfb9618c Don't echo password on commandline when reading 2014-09-13 16:21:57 +01:00
Sascha Depold
aa2406eb4b Load home directory from helper and make it configurable. 2014-09-13 14:26:45 +02:00
Mattias Erming
0f68823298 Fix 'shout add' crash 2014-09-11 16:55:50 -07:00
Mattias Erming
d53c0716e6 Added 'shout reset' command 2014-09-11 14:00:18 -07:00
Mattias Erming
428f63946b Added password hashing 2014-09-11 13:37:16 -07:00
Mattias Erming
04da27617e Create 'users/' if not exist 2014-09-09 01:10:09 -07:00
Mattias Erming
752c4c491b Save users in ~/.shout/ 2014-08-26 11:01:26 -07:00
Mattias Erming
6be53fba43 Rename cli folder 2014-08-25 02:40:13 -07:00