diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/utils.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index 2bf6b800..120df12b 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -124,6 +124,7 @@ export const login = async (user, cookies) => { let expires = new Date(); expires.setSeconds(expires.getSeconds() + maxAge); + cookies.set('username', user.username, { path: '/', expires }); cookies.set('token', token, { path: '/', expires }); }; |
