Merge branch 'staging' into master
commit
fceb41d806
|
@ -2,6 +2,7 @@ module.exports = {
|
||||||
show: function (req, res) {
|
show: function (req, res) {
|
||||||
res.view('pages/temp', {
|
res.view('pages/temp', {
|
||||||
email: req.user.email
|
email: req.user.email
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
|
@ -37,4 +37,4 @@ module.exports = {
|
||||||
me: function (req, res) {
|
me: function (req, res) {
|
||||||
res.json(req.user);
|
res.json(req.user);
|
||||||
}
|
}
|
||||||
};
|
};
|
|
@ -168,4 +168,4 @@ function PassportHelper () {
|
||||||
this.getPassport = function () {
|
this.getPassport = function () {
|
||||||
return passport;
|
return passport;
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
let passportHook = sails.hooks.passport;
|
let passportHook = sails.hooks.passport;
|
||||||
|
|
||||||
|
|
||||||
if (!passportHook) {
|
if (!passportHook) {
|
||||||
passportHook = function (sails) {
|
passportHook = function (sails) {
|
||||||
return {
|
return {
|
||||||
|
@ -12,4 +13,4 @@ if (!passportHook) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = passportHook;
|
module.exports = passportHook;
|
|
@ -33,4 +33,4 @@ module.exports = {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
|
@ -32,7 +32,6 @@
|
||||||
"@babel/polyfill": "^7.0.0",
|
"@babel/polyfill": "^7.0.0",
|
||||||
"@babel/preset-env": "^7.1.0",
|
"@babel/preset-env": "^7.1.0",
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"@sailshq/eslint": "^4.19.3",
|
|
||||||
"babel-loader": "^8.0.4",
|
"babel-loader": "^8.0.4",
|
||||||
"babel-preset-es2015": "^6.24.1",
|
"babel-preset-es2015": "^6.24.1",
|
||||||
"css-loader": "^1.0.1",
|
"css-loader": "^1.0.1",
|
||||||
|
|
Loading…
Reference in New Issue