Removed unused token code
This commit is contained in:
1 parent
bb1e78d71e
commit
a600ac30af
1 file changed
+1
-2
@@ -151,8 +151,7 @@ const loginController = async (req, res, next) => {
|
|||||||
|
|
||||||
// Happy path, return token
|
// Happy path, return token
|
||||||
const token = issueToken(userWithoutPassword);
|
const token = issueToken(userWithoutPassword);
|
||||||
user.authToken = token;
|
|
||||||
await user.save();
|
|
||||||
// reset avatar image
|
// reset avatar image
|
||||||
userWithoutPassword.avatarImage = user.avatarImage;
|
userWithoutPassword.avatarImage = user.avatarImage;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user