mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-05 22:43:06 -05:00
Fix email confirmation skip option in tootctl accounts modify USERNAME --email EMAIL --confirm
(#24578)
This commit is contained in:
parent
bc75e62ca6
commit
3afa1fda7a
@ -189,9 +189,10 @@ module Mastodon
|
|||||||
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.otp_required_for_login = false if options[:disable_2fa]
|
||||||
user.confirm if options[:confirm]
|
|
||||||
|
|
||||||
if user.save
|
if user.save
|
||||||
|
user.confirm if options[:confirm]
|
||||||
|
|
||||||
say('OK', :green)
|
say('OK', :green)
|
||||||
say("New password: #{password}") if options[:reset_password]
|
say("New password: #{password}") if options[:reset_password]
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user