1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Also removing webauthn credentials on 2fa reset with admin cli

This commit is contained in:
MszPro 2024-04-09 10:36:06 +09:00
parent b8dca8d22a
commit 6df3006831
No known key found for this signature in database
GPG key ID: 9BE0719FEBD9D385

View file

@ -166,6 +166,7 @@ module Mastodon::CLI
user.disabled = true if options[:disable]
user.approved = true if options[:approve]
user.otp_required_for_login = false if options[:disable_2fa]
user.webauthn_credentials = [] if options[:disable_2fa]
if user.save
user.confirm if options[:confirm]