mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
remove user-id
This commit is contained in:
parent
f6afb1f7ed
commit
78f6993547
1 changed files with 1 additions and 6 deletions
|
|
@ -54,12 +54,7 @@ class UsersController {
|
|||
|
||||
const token = jwt.create(user.email, user._id);
|
||||
|
||||
let result = {
|
||||
token: token,
|
||||
userId: user._id
|
||||
}
|
||||
|
||||
return res.status(200).json({ result });
|
||||
return res.status(200).json({ token });
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue