mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Merge d068fd8b5e
into a50c8e951f
This commit is contained in:
commit
c65e9d05ed
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,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]
|
||||
|
|
Loading…
Reference in a new issue