mirror of
https://github.com/plankanban/planka.git
synced 2025-07-24 15:49:46 +02:00
Project managers, board members, auto-update after reconnection, refactoring
This commit is contained in:
parent
d6cb1f6683
commit
b39119ace4
478 changed files with 21226 additions and 19495 deletions
|
@ -37,8 +37,8 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
|
||||
async fn(inputs, exits) {
|
||||
const user = await sails.helpers.getUserByEmailOrUsername(inputs.emailOrUsername);
|
||||
async fn(inputs) {
|
||||
const user = await sails.helpers.users.getOneByEmailOrUsername(inputs.emailOrUsername);
|
||||
|
||||
if (!user) {
|
||||
throw Errors.INVALID_EMAIL_OR_USERNAME;
|
||||
|
@ -48,8 +48,8 @@ module.exports = {
|
|||
throw Errors.INVALID_PASSWORD;
|
||||
}
|
||||
|
||||
return exits.success({
|
||||
item: sails.helpers.signToken(user.id),
|
||||
});
|
||||
return {
|
||||
item: sails.helpers.utils.signToken(user.id),
|
||||
};
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue