From 3afa1fda7a17c5e4e3587b9f7d11c84f12168614 Mon Sep 17 00:00:00 2001 From: Daniel M Brasil Date: Tue, 18 Apr 2023 04:51:24 -0300 Subject: [PATCH] Fix email confirmation skip option in `tootctl accounts modify USERNAME --email EMAIL --confirm` (#24578) --- lib/mastodon/accounts_cli.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mastodon/accounts_cli.rb b/lib/mastodon/accounts_cli.rb index 1601a6cd3..5194cd80a 100644 --- a/lib/mastodon/accounts_cli.rb +++ b/lib/mastodon/accounts_cli.rb @@ -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