mirror of
https://github.com/Retropex/btcpayserver-docker.git
synced 2025-05-12 21:10:42 +02:00
Add fido2 cred removal in admin script (#467)
This commit is contained in:
parent
d8bccf7253
commit
26eacfdbcb
@ -7,6 +7,7 @@ query()
|
||||
case "$1" in
|
||||
disable-multifactor)
|
||||
query "DELETE FROM \"U2FDevices\" WHERE \"ApplicationUserId\" = (SELECT \"Id\" FROM \"AspNetUsers\" WHERE upper('$2') = \"NormalizedEmail\")"
|
||||
query "DELETE FROM \"Fido2Credentials\" WHERE \"ApplicationUserId\" = (SELECT \"Id\" FROM \"AspNetUsers\" WHERE upper('$2') = \"NormalizedEmail\")"
|
||||
query "UPDATE public.\"AspNetUsers\" SET \"TwoFactorEnabled\"=false WHERE upper('\$2') = \"NormalizedEmail\""
|
||||
;;
|
||||
set-user-admin)
|
||||
|
Loading…
Reference in New Issue
Block a user