klark-js-plugins
Advanced tools
Comparing version 1.0.25 to 1.0.26
{ | ||
"name": "klark-js-plugins", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "Plugin modules for KlarkJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -69,31 +69,2 @@ 'use strict'; | ||
// seconds, after signup of the account, how long will the user remain until it will be validated | ||
// var USER_ACCOUNT_VALIDATION_PERIOD = 1 * 24 * 60 * 60 * 1000; | ||
// krkDbMongooseConnector.decorateMongoosePromises(); | ||
// var schema = new $mongoose.Schema({ | ||
// name: {type: String, maxlength: [64], unique: true, required: true}, | ||
// email: {type: $mongoose.SchemaTypes.Email, unique: true, required: true}, | ||
// password: {type: String, required: true}, | ||
// phone: {type: String, maxlength: [32]}, | ||
// lastLogin: {type: Date, required: true, default: Date.now}, | ||
// validationExpiresAt: { type: Date, default: Date.now, expires: USER_ACCOUNT_VALIDATION_PERIOD }, | ||
// validationToken: {type: String, maxlength: [64]}, | ||
// totalLogins: {type: Number, required: true, min: 0, default: 0}, | ||
// role: {type: String, enum: krkMiddlewarePermissionsRoles, required: true}, | ||
// validatedByAdmin: {type: Boolean, required: true}, | ||
// preferences: {type: $mongoose.Schema.Types.Mixed} | ||
// }); | ||
// schema.plugin(krkDbMongoosePluginsPassword, { passwordField: 'password' }); | ||
// schema.plugin($mongooseCreatedmodified.createdModifiedPlugin); | ||
// schema.methods.getSafely = getSafely; | ||
// schema.methods.updateLoginInfo = updateLoginInfo; | ||
// schema.statics.verifyAccount = verifyAccount; | ||
// schema.statics.invalidateAccount = invalidateAccount; | ||
// schema.statics.validateByAdmin = validateByAdmin; | ||
// return $mongoose.model('User', schema); | ||
function getSafely() { | ||
@@ -100,0 +71,0 @@ var userObj = this.toObject(); |
@@ -17,18 +17,4 @@ 'use strict'; | ||
var ma = config.emailSmtp; | ||
// var ma = { | ||
// host: "smtp-mail.outlook.com", // hostname | ||
// secureConnection: false, // TLS requires secureConnection to be false | ||
// port: 587, // port for secure SMTP | ||
// auth: { | ||
// user: "info@wiregoose.com", | ||
// pass: "MikroMouPony!@#" | ||
// }, | ||
// tls: { | ||
// ciphers:'SSLv3' | ||
// } | ||
// }; | ||
var transporter = $nodemailer.createTransport(config.emailSmtp); | ||
var transporter = $nodemailer.createTransport(ma); | ||
var from = config.emailName ? '"' + config.emailName + '" <' + config.emailAddress + '>' | ||
@@ -38,3 +24,3 @@ : config.emailAddress; | ||
var mailOptions = { | ||
from, // sender address | ||
from: from, // sender address | ||
to: _.join(to, ', '), // list of receivers | ||
@@ -41,0 +27,0 @@ subject: subject, // Subject line |
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
80008
2020