mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
Add username to user
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
exits: {
|
||||
notValid: {},
|
||||
invalidToken: {},
|
||||
},
|
||||
|
||||
fn(inputs, exits) {
|
||||
@@ -20,7 +20,7 @@ module.exports = {
|
||||
try {
|
||||
payload = jwt.verify(inputs.token, sails.config.session.secret);
|
||||
} catch (error) {
|
||||
throw 'notValid';
|
||||
throw 'invalidToken';
|
||||
}
|
||||
|
||||
return exits.success(payload);
|
||||
|
||||
Reference in New Issue
Block a user