Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinehage committed Jun 5, 2020
2 parents e45b30e + 06e2fa1 commit 6ed9278
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Expand Up @@ -12,8 +12,6 @@ const fs = require("fs");

const get = (p, o) => p.reduce((xs, x) => (xs && xs[x]) ? xs[x] : null, o);

const coreModule = require("soajs.core.modules");
const soajsValidator = coreModule.core.validator;
const driverConfig = require('./config.js');

let model = process.env.SOAJS_SERVICE_MODEL || "mongo";
Expand Down Expand Up @@ -110,7 +108,8 @@ let driver = {
}
let modelUserObj = new SSOT.user(soajs);
let data = {};
let pattern = soajsValidator.SchemaPatterns.email;
let pattern = /^(?:[\w!#$%&'*+\-\/=?^`{|}~]+\.)*[\w!#$%&'*+\-\/=?^`{|}~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])]))$/;

if (!input || !input.username) {
return cb({"code": 403, "msg": driverConfig.errors[403]});
}
Expand Down

0 comments on commit 6ed9278

Please sign in to comment.