From 35683ac154ee7c717246dcac0d791b3f93c3824a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B7=E3=83=A5=E3=83=B3=E3=82=B8=E3=83=A7=E3=83=BC?= =?UTF-8?q?=E3=82=A1?= <68307970+mszpro@users.noreply.github.com> Date: Fri, 22 Nov 2024 19:04:48 +0900 Subject: [PATCH] Remove webauthn credentials on `tootctl accounts modify --disable-2fa` (#29883) Co-authored-by: Claire --- lib/mastodon/cli/accounts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mastodon/cli/accounts.rb b/lib/mastodon/cli/accounts.rb index c8e91224cf..41127741ef 100644 --- a/lib/mastodon/cli/accounts.rb +++ b/lib/mastodon/cli/accounts.rb @@ -164,7 +164,7 @@ module Mastodon::CLI user.disabled = false if options[:enable] user.disabled = true if options[:disable] user.approved = true if options[:approve] - user.otp_required_for_login = false if options[:disable_2fa] + user.disable_two_factor! if options[:disable_2fa] if user.save user.confirm if options[:confirm]