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:
parent
71ed3b83dd
commit
0088ba7068
3 changed files with 32 additions and 1 deletions
9
bin/lamassu-users
Normal file
9
bin/lamassu-users
Normal 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\""
|
||||
Loading…
Add table
Add a link
Reference in a new issue