Comparing version 0.0.8 to 0.0.9
@@ -12,5 +12,3 @@ var structr = require("structr"), | ||
console.log(host); | ||
// console.log(window.location) | ||
@@ -17,0 +15,0 @@ var Account; |
@@ -218,2 +218,5 @@ var access = require("../access"), | ||
var on = outcome.error(callback); | ||
//email must be lower case - it generally is. What if they're signing up on an apple device? | ||
acc.email = acc.email.toLowerCase(); | ||
@@ -249,6 +252,9 @@ step( | ||
authFields.forEach(function(fieldName) { | ||
q[fieldName] = fieldName == "password" ? hashPass(String(credentials.password)) : credentials[fieldName]; | ||
if(fieldName == "email") q[fieldName] = String(credentials[fieldName]).toLowerCase(); | ||
}); | ||
this.findOne(q, outcome.error(callback).success(function(account) { | ||
@@ -255,0 +261,0 @@ if(!account) return callback(new comerr.IncorrectInput("Incorrect email / password")); |
{ | ||
"name": "auth", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "ERROR: No README.md file found!", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36032
1056