Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Username added to string generation.

  • Loading branch information...
commit 5dd5ed47f9513ac2e2a74d30d6bc1ac5b84127f8 1 parent 49e375b
@gevorg authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/htpasswd.js
  2. +1 −1  package.json
View
2  lib/htpasswd.js
@@ -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
2  package.json
@@ -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": [
{
Please sign in to comment.
Something went wrong with that request. Please try again.