problem with issue #439 fixed

parent 3ad944c5
Showing with 2 additions and 1 deletions
......@@ -23,10 +23,11 @@ module.exports = {
* @param {response} res {}
*/
ping_session: function (req, res) {
console.log(JSON.stringify(req.token));
res.ok({
version: sails.config.pictogram.version,
server_time: (new Date()).getTime(),
token: sailsTokenAuth.issueToken(req.params.token, sails.config.jwt.expiresInMinutes)
token: sailsTokenAuth.issueToken(req.token, sails.config.jwt.expiresInMinutes)
});
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment