mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 13:04:23 +00:00
fix logout stuff
This commit is contained in:
@@ -100,8 +100,7 @@
|
||||
} );
|
||||
|
||||
const logout = () => {
|
||||
location.href = 'http://localhost:8080/logout?return=http://localhost:8081';
|
||||
// location.href = 'https://id.janishutz.com/logout?return=https://music.janishutz.com';
|
||||
location.href = localStorage.getItem( 'url' ) + '/logout?return=' + location.href;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<div style="margin-top: 20px;">
|
||||
<a href="https://store.janishutz.com/product/com.janishutz.MusicPlayer" class="fancy-button" target="_blank">Subscribe</a>
|
||||
<a href="/" class="fancy-button" style="margin-left: 10px;" v-if="!reasonForRedirectHere">Log in</a>
|
||||
<button href="/" class="fancy-button" style="margin-left: 10px;" v-if="!reasonForRedirectHere" @click="logout()">Log out</button>
|
||||
<a href="https://github.com/simplePCBuilding/MusicPlayerV2" class="fancy-button" style="margin-left: 10px;" target="_blank">GitHub</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -39,6 +40,10 @@
|
||||
} );
|
||||
const reasonForRedirectHere = ref( sessionStorage.getItem( 'getRedirectionReason' ) );
|
||||
sessionStorage.removeItem( 'getRedirectionReason' );
|
||||
|
||||
const logout = () => {
|
||||
location.href = localStorage.getItem( 'url' ) + '/logout?return=' + location.href;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user