Merge branch 'main' of gitlab.com:openKMITL/little-lines/frontend

This commit is contained in:
NekoVari 2023-12-06 18:19:56 +07:00
commit b43eacd22f

View file

@ -158,7 +158,7 @@ export default {
console.log("User Details:", userDetails);
this.userDetails = userDetails;
sessionStorage.setItem('current_user', userDetails.user.username);
sessionStorage.setItem('current_user', JSON.stringify({id:userDetails.user._id}));
this.$router.push({ name: 'home' });
// Redirect to the homepage ("/")