Permalink
Browse files

Username added to string generation.

  • Loading branch information...
1 parent 49e375b commit 5dd5ed47f9513ac2e2a74d30d6bc1ac5b84127f8 @gevorg gevorg committed Dec 4, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/htpasswd.js
  2. +1 −1 package.json
View
@@ -153,7 +153,7 @@ module.exports = {
'finishProcessing' : function() {
try {
var newLine = this.username + ":" +
- !this.plainText ? "{SHA}" + this.sha1(this.password) : this.password;
+ (!this.plainText ? ("{SHA}" + this.sha1(this.password)) : this.password);
// Prints to screen.
if(this.printToScreen) {
View
@@ -1,7 +1,7 @@
{
"name": "htpasswd",
"description": "Node.js package for HTTP Basic Authentication password file utility.",
- "version": "1.0.7",
+ "version": "1.0.8",
"author": "Gevorg Harutyunyan (http://github.com/gevorg)",
"maintainers": [
{

0 comments on commit 5dd5ed4

Please sign in to comment.