diff --git a/lib/tasks/admin.rake b/lib/tasks/admin.rake index f4d09dbcc4d..c5b68e1a8ab 100644 --- a/lib/tasks/admin.rake +++ b/lib/tasks/admin.rake @@ -65,9 +65,10 @@ task "admin:create" => :environment do else password = ask("Password: ") { |q| q.echo = false } password_confirmation = ask("Repeat password: ") { |q| q.echo = false } - passwords_match = password == password_confirmation end + passwords_match = password == password_confirmation + say("Passwords don't match, try again...") unless passwords_match end while !passwords_match admin.password = password