summaryrefslogtreecommitdiff
path: root/bin/manage_users (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-12-09Check for falsy existing_user variable. Fixes #234Soeren Wegener1-4/+4
Use another return code for "User already exist" This allows external scripts to differentiate between failure reasons. Signed-off-by: Soeren Wegener <wegener92@gmail.com>
2019-01-10Fix broken manage_users after Winston upgradeDaan Sprenkels1-1/+1
Commit c3584770 upgrades Winston and with that version `logger.transports.console` becomes undefined. This commit updates the code to prevent the crash. Signed-off-by: Daan Sprenkels <hello@dsprenkels.com>
2018-10-29feat(bin): ensure email existsErona1-0/+4
Signed-off-by: Erona <erona@loli.bz>
2018-10-29feat(bin): add option --reset to reset user passwordErona1-1/+21
Signed-off-by: Erona <erona@loli.bz>
2018-10-29refactor(bin): add function getPass in bin/manage_usersErona1-8/+11
Signed-off-by: Erona <erona@loli.bz>
2018-10-29refactor(bin): eliminate `var` and use template string refactor string thingsErona1-15/+16
Signed-off-by: Erona <erona@loli.bz>
2018-10-29refactor(bin): add function showUsage to refactor usage thingsErona1-8/+7
Signed-off-by: Erona <erona@loli.bz>
2018-10-29refactor(bin): refactor check args in bin/manage_usersErona1-14/+17
Signed-off-by: Erona <erona@loli.bz>
2018-01-29Prevent "wrong type"-issueSheogorath1-1/+1
The argument is may interpreted as number which causes the "pass" parameter of the user creation to fail. Probably the same applies to the mail address. But mail addresses are by definition not allowed to start by a number (iirc) which makes it less a problem. This is mainly a quick fix. Should be refactored a bit in future. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-01-29Add simple user-management tool for emailsignin …Dario Ernst1-0/+89
Currently, administrators of closed instances need to manually fiddle in their databases for user-management. This commit adds a small commandline utility that allows to create and delete users. Signed-off-by: Dario Ernst <dario@kanojo.de>