mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 23:20:44 +01:00
Remove webauthn credentials on tootctl accounts modify --disable-2fa
(#29883)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
0ad5c212c1
commit
35683ac154
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ module Mastodon::CLI
|
||||||
user.disabled = false if options[:enable]
|
user.disabled = false if options[:enable]
|
||||||
user.disabled = true if options[:disable]
|
user.disabled = true if options[:disable]
|
||||||
user.approved = true if options[:approve]
|
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
|
if user.save
|
||||||
user.confirm if options[:confirm]
|
user.confirm if options[:confirm]
|
||||||
|
|
Loading…
Reference in a new issue