Module: FuzzyNotes::Authentication

Included in:
Cipher, EvernoteSync
Defined in:
lib/fuzzy_notes/authentication.rb

Instance Method Summary collapse

Instance Method Details

#get_passwordObject



8
9
10
11
12
13
# File 'lib/fuzzy_notes/authentication.rb', line 8

def get_password
  printf 'Enter password (will not be shown):'
  `stty -echo`; password = STDIN.gets.strip;`stty echo`; puts
  log.debug "entered password: #{password.inspect}"
  password
end

#get_usernameObject



3
4
5
6
# File 'lib/fuzzy_notes/authentication.rb', line 3

def get_username
  printf 'Enter username: '
  gets
end