Add error reading from the querystring for authentication errors.
This commit is contained in:
parent
62e4e8be29
commit
995cc178b7
1 changed files with 9 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
|||
<template>
|
||||
<div id="login_screen" class="maximize_size">
|
||||
<div class="card">
|
||||
<div
|
||||
v-if="error"
|
||||
class="error"
|
||||
>{{ error }}</div>
|
||||
<a :href="spotify_auth_url">
|
||||
<button>Login With Spotify</button>
|
||||
</a>
|
||||
|
|
@ -44,7 +48,11 @@ export default {
|
|||
};
|
||||
|
||||
return `${this.auth_base}?${params.join("&")}`;
|
||||
}
|
||||
},
|
||||
error() {
|
||||
let error_message = (new URLSearchParams(window.location.search.slice(1))).get(`error`);
|
||||
return error_message ? error_message : ``;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue