summaryrefslogtreecommitdiff
path: root/bin/manage_users (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Check for falsy existing_user variable. Fixes #234Soeren Wegener2019-12-091-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>
* Fix broken manage_users after Winston upgradeDaan Sprenkels2019-01-101-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>
* feat(bin): ensure email existsErona2018-10-291-0/+4
| | | | Signed-off-by: Erona <erona@loli.bz>
* feat(bin): add option --reset to reset user passwordErona2018-10-291-1/+21
| | | | Signed-off-by: Erona <erona@loli.bz>
* refactor(bin): add function getPass in bin/manage_usersErona2018-10-291-8/+11
| | | | Signed-off-by: Erona <erona@loli.bz>
* refactor(bin): eliminate `var` and use template string refactor string thingsErona2018-10-291-15/+16
| | | | Signed-off-by: Erona <erona@loli.bz>
* refactor(bin): add function showUsage to refactor usage thingsErona2018-10-291-8/+7
| | | | Signed-off-by: Erona <erona@loli.bz>
* refactor(bin): refactor check args in bin/manage_usersErona2018-10-291-14/+17
| | | | Signed-off-by: Erona <erona@loli.bz>
* Prevent "wrong type"-issueSheogorath2018-01-291-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>
* Add simple user-management tool for emailsignin …Dario Ernst2018-01-291-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>