1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-27 22:38:42 +09:00

Fix email confirmation skip option in tootctl accounts modify USERNAME --email EMAIL --confirm (#24578)

This commit is contained in:
Daniel M Brasil 2023-04-18 04:51:24 -03:00 committed by GitHub
parent bc75e62ca6
commit 3afa1fda7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,9 +189,10 @@ module Mastodon
user.disabled = true if options[:disable]
user.approved = true if options[:approve]
user.otp_required_for_login = false if options[:disable_2fa]
user.confirm if options[:confirm]
if user.save
user.confirm if options[:confirm]
say('OK', :green)
say("New password: #{password}") if options[:reset_password]
else