Merge pull request #185 from MagicalCodeMonkey/signin-bug-fix

Always force signin if the user hasn't authenticated with Plex
This commit is contained in:
Sam 2020-05-09 22:29:07 +10:00 committed by GitHub
commit 44da35ed3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -354,9 +354,7 @@ export default {
this.$store.dispatch('PLAYBACK_CHANGE', data);
});
if (!window.localStorage.getItem('plexuser')) {
if (this.$route.fullPath.indexOf('join') === -1) {
this.$router.push('/signin');
}
this.$router.push('/signin');
this.loading = false;
return;
}