mirror of
https://gitlab.com/little-lines/frontend.git
synced 2024-11-22 13:16:52 +00:00
Merge branch 'main' of gitlab.com:openKMITL/little-lines/frontend
This commit is contained in:
commit
b43eacd22f
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ export default {
|
||||||
console.log("User Details:", userDetails);
|
console.log("User Details:", userDetails);
|
||||||
this.userDetails = 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' });
|
this.$router.push({ name: 'home' });
|
||||||
|
|
||||||
// Redirect to the homepage ("/")
|
// Redirect to the homepage ("/")
|
||||||
|
|
Loading…
Reference in a new issue