[O] Make login() return LoginUser

This commit is contained in:
Hykilpikonna
2019-12-02 14:20:48 -05:00
parent 991580473d
commit 6c71bb4ab2
2 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import {Component, Vue} from 'vue-property-decorator';
import Constants from '@/constants';
import App from '@/components/app/app';
import VersionUtils from '@/logic/utils/version-utils';
import LoginUser from '@/logic/login-user';
/**
* This component handles user login, and obtains data from the server.
@@ -90,7 +91,7 @@ export default class Login extends Vue
this.$cookies.set('va.version', Constants.VERSION, '27d');
// Call a custom event with the token
this.$emit('login:user', response.data);
this.$emit('login:user', new LoginUser(response.data.user));
}
else
{
+1 -3
View File
@@ -15,9 +15,7 @@
"webpack-env"
],
"paths": {
"@/*": [
"src/*"
]
"@/*": ["src/*"]
},
"lib": [
"esnext",