mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 17:25:39 +03:00
Code formatting with prettier, change eslint config for the server
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var jwt = require('jsonwebtoken');
|
||||
const jwt = require('jsonwebtoken');
|
||||
|
||||
module.exports = {
|
||||
sync: true,
|
||||
@@ -6,13 +6,13 @@ module.exports = {
|
||||
inputs: {
|
||||
payload: {
|
||||
type: 'json',
|
||||
required: true
|
||||
}
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
fn: function(inputs, exits) {
|
||||
fn(inputs, exits) {
|
||||
const token = jwt.sign(inputs.payload, sails.config.session.secret);
|
||||
|
||||
return exits.success(token);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user