lib/faastruby/cli/commands/account/confirm.rb in faastruby-0.5.12 vs lib/faastruby/cli/commands/account/confirm.rb in faastruby-0.5.13
- old
+ new
@@ -12,16 +12,19 @@
end
def run
user = User.new(email: @options['email'])
user.send_confirmation_code
- puts "\nYou should have received an email with a confirmation token. If you didn't receive an email, make sure you sign up with the correct email address."
+ puts "\nYou should have received an email with a confirmation token."
+ puts "If you didn't receive an email:"
+ puts "- Make sure you sign up with the correct email address"
+ puts "- The system won't send an email if you account status is already 'confirmed'"
print "Confirmation Token: "
user.confirmation_token = STDIN.gets.chomp
spinner = spin("Confirming your account...")
user.confirm_account!
FaaStRuby::CLI.error(user.errors) if user.errors.any?
- spinner.stop(" Done!")
+ spinner.success
user.save_credentials
puts "Login successful!"
migrate
end