Skip to content

Commit 68f3d68

Browse files
authored
Merge pull request #19 from domini-code/revert-12-master
Revert "Added username to Login Response, closes #11"
2 parents fdd6838 + 65fcf2e commit 68f3d68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API/src/controller/AuthController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AuthController {
2929

3030
const token = jwt.sign({ userId: user.id, username: user.username }, config.jwtSecret, { expiresIn: '1h' });
3131

32-
res.json({ message: 'OK', token, userId: user.id, role: user.role, username: user.username });
32+
res.json({ message: 'OK', token, userId: user.id, role: user.role });
3333
};
3434

3535
static changePassword = async (req: Request, res: Response) => {

0 commit comments

Comments
 (0)