Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

[1265] Setup script for setting up initial user doesn't echo the typed password #1304

Merged
merged 1 commit into from
Oct 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def prompt_field(obj, field)

def prompt_password(user)
puts 'Temp Password:'
user.password = STDIN.gets.chomp
user.password = STDIN.noecho(&:gets).chomp
user.password_confirmation = user.password
begin
user.save!
Expand Down
4 changes: 2 additions & 2 deletions lib/tasks/setup_application.rake
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ namespace :app do
else
username = email
puts 'Password:'
password = STDIN.gets.chomp
password = STDIN.noecho(&:gets).chomp
puts 'Confirm Password:'
password_confirmation = STDIN.gets.chomp
password_confirmation = STDIN.noecho(&:gets).chomp
end
puts 'Affiliation (i.e. Yale College):'
affiliation = STDIN.gets.chomp
Expand Down