You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
537 B
21 lines
537 B
#!/bin/bash
|
|
query()
|
|
{
|
|
docker exec $(docker ps -a -q -f "name=postgres_1") psql -U postgres -d btcpayservermainnet -c "$*"
|
|
}
|
|
|
|
case "$1" in
|
|
reset-u2f)
|
|
query "SELECT * FROM \"U2FDevices\""
|
|
query "UPDATE public.\"AspNetUsers\" SET \"TwoFactorEnabled\"=false WHERE upper('\$1') = \"NormalizedEmail\""
|
|
query "SELECT * FROM \"U2FDevices\""
|
|
;;
|
|
*)
|
|
echo "Usage: $0 [command]"
|
|
echo
|
|
echo "Commands:"
|
|
echo " reset-u2f"
|
|
echo " reset-u2f"
|
|
esac
|
|
|
|
exit 0
|
|
|