authmaker-common
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -21,2 +21,3 @@ var mongoose = require('mongoose'); | ||
password: String, | ||
termsAccepted: Boolean, | ||
@@ -79,2 +80,4 @@ //Install details - temporary during first install for an account | ||
metaData: mongoose.Schema.Types.Mixed, | ||
externalIdentities: [{ type: mongoose.Schema.Types.ObjectId, ref: 'ExternalIdentity' }] | ||
@@ -86,2 +89,13 @@ | ||
userSchema.index({ | ||
username: 1 | ||
}); | ||
userSchema.index({ | ||
username: 1, | ||
clientId: 1 | ||
}, { | ||
unique: true | ||
}); | ||
userSchema.methods.getAccounts = function() { | ||
@@ -118,13 +132,2 @@ //return a (promise for) list of accounts that this user is a part of | ||
userSchema.index({ | ||
username: 1 | ||
}); | ||
userSchema.index({ | ||
username: 1, | ||
clientId: 1 | ||
}, { | ||
unique: true | ||
}); | ||
//protect against re-defining | ||
@@ -131,0 +134,0 @@ if (mongoose.modelNames().indexOf(modelName) !== -1) { |
{ | ||
"name": "authmaker-common", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Common aspects for all authmaker repos", | ||
@@ -5,0 +5,0 @@ "main": "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
24243
733