Skip to content

Commit

Permalink
Emphasise on password visibility in console.
Browse files Browse the repository at this point in the history
  • Loading branch information
hypirion committed Dec 30, 2014
1 parent b2410f1 commit 893876c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/leiningen/deploy.clj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@
password (if console
(.readPassword console "%s" (into-array ["Password: "]))
(do
(print "Password(visible): ")
(println "LEIN IS UNABLE TO TURN OFF ECHOING, SO"
"THE PASSWORD IS PRINTED TO THE CONSOLE")
(print "Password: ")
(flush)
(read-line)))]
[id (assoc settings :username username :password password)]))))
Expand Down

0 comments on commit 893876c

Please sign in to comment.