Permalink
Browse files

Password reading part cleaned.

  • Loading branch information...
1 parent 26b109f commit d26182171010797886b7a3961d0b3b4f1e7b88dd @gevorg gevorg committed Feb 21, 2014
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/processor.coffee
  2. +1 −1 package.json
View
@@ -35,11 +35,11 @@ module.exports =
# Try to read password.
prompt.get options, (err, result) ->
- if result.password is result.rePassword
+ if not err and result.password is result.rePassword
program.args.push result.password
module.exports.finalize program
else
- console.error "Password verification error."
+ console.error "\nPassword verification error."
# Read password from stdin.
readPasswordStdIn: (program) ->
View
@@ -1,7 +1,7 @@
{
"name": "htpasswd",
"description": "Node.js package for HTTP Basic Authentication password file utility.",
- "version": "2.1.0",
+ "version": "2.1.1",
"author": "Gevorg Harutyunyan (http://github.com/gevorg)",
"maintainers": [
{

0 comments on commit d261821

Please sign in to comment.