diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
index 13df76f910746871f21f2f0bb18a2b3619a464a1..cf32b149545ac1d57900fcb00f777179b5a28b7a 100644
--- a/lib/tasks/mastodon.rake
+++ b/lib/tasks/mastodon.rake
@@ -472,7 +472,7 @@ namespace :mastodon do
 
         if user.save
           prompt.ok 'User created and confirmation mail sent to the user\'s email address.'
-          prompt.ok "Here is the random password generated for the user: #{password}"
+          prompt.ok "Here is the random password generated for the user: #{user.password}"
         else
           prompt.warn 'User was not created because of the following errors:'