mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
parent
7956503a46
commit
fe91b5241e
478 changed files with 21226 additions and 19495 deletions
|
@ -13,12 +13,12 @@ module.exports = function defineCurrentUserHook(sails) {
|
|||
let id;
|
||||
|
||||
try {
|
||||
id = sails.helpers.verifyToken(accessToken);
|
||||
id = sails.helpers.utils.verifyToken(accessToken);
|
||||
} catch (error) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return sails.helpers.getUser(id);
|
||||
return sails.helpers.users.getOne(id);
|
||||
};
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue