lib/locomotive/wagon/commands/authenticate_command.rb in locomotivecms_wagon-2.0.0.rc2 vs lib/locomotive/wagon/commands/authenticate_command.rb in locomotivecms_wagon-2.0.0.rc3
- old
+ new
@@ -22,12 +22,13 @@
!api_key.nil?
end
def fetch_api_key
if my_account
+ shell.say "\nYou have been successfully authenticated.", :green
my_account.api_key
else
- shell.say "No account found for #{email} or invalid credentials", :yellow
+ shell.say "\nNo account found for #{email} or invalid credentials", :yellow
# shall we create a new account?
if shell.yes?('Do you want to create a new account? [Y/N]')
create_account
else