# File lib/simp/cli/config/items/password_item.rb, line 85 def query_ask password = false password = query_generate_password unless @generate_option == :never_generate while !password answers = [] [0,1].each{ |x| logger.say "Please enter a password:" if x == 0 logger.say "Please confirm the password:" if x == 1 answers[x] = super } if answers.first == answers.last password = answers.first else say_yellow( 'WARNING: passwords did not match! Please try again.' ) end end encrypt password end