Add lamassu-revoke and lamassu-users (#270)

* lamassu-list-users

Lists registered users to the admin panel

* Add in unregister function to revoke token access

* Create lamassu-revoke

* Changed name to lamassu-users

* Update login.js

* Update login.js

* Add lamassu-users & lamassu revoke to package.json

* Re-add missing comma.
This commit is contained in:
Brandon Cryderman 2019-04-17 11:51:45 -04:00 committed by Josh Harvey
parent 71ed3b83dd
commit 0088ba7068
3 changed files with 32 additions and 1 deletions

9
bin/lamassu-users Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e
if [ "$(whoami)" != "root" ]; then
echo -e "This script has to be run as \033[1mroot\033[0m user"
exit 3
fi
su - postgres -c "psql \"lamassu\" -Atc \"select * from user_tokens\""