Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

klark-js-plugins

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klark-js-plugins - npm Package Compare versions

Comparing version 1.0.25 to 1.0.26

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc