Fix login bug

closes #71
This commit is contained in:
Matthias 2020-08-20 08:42:19 +02:00
parent 3a93c0b50c
commit e124a59f65

View File

@ -124,6 +124,7 @@ export default class Login extends Vue {
.then(() => {
console.log('Login success.');
this.setLoggedIn(true);
setBaseUrl(userService.getAPIUrl());
this.emitLoginResult(true);
if (this.inModal === false) {
if (typeof this.$route.query.redirect === 'string') {
@ -154,7 +155,6 @@ export default class Login extends Vue {
console.log(this.errorMessage);
this.emitLoginResult(false);
});
setBaseUrl(userService.getAPIUrl());
}
}
</script>