diff options
| author | Adam Soltys <[email protected]> | 2022-11-10 16:38:45 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-10 16:38:50 -0800 |
| commit | 950a45a0f96f05ad45c183040b66fa49474ff795 (patch) | |
| tree | c028e7c137eb62de82890882773d8a48e53bceee /src/lib/utils.js | |
| parent | e0ef521cdefb075babc811de1bd0eaafeb3af02b (diff) | |
| download | coinos-ui-950a45a0f96f05ad45c183040b66fa49474ff795.tar.gz coinos-ui-950a45a0f96f05ad45c183040b66fa49474ff795.zip | |
username cookie
Diffstat (limited to 'src/lib/utils.js')
| -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 }); }; |
