A little bit of SEO, fix auth callback URL

This commit is contained in:
Jai A
2020-10-02 22:50:41 -07:00
parent f561de200d
commit 3127f7a31b
2 changed files with 61 additions and 7 deletions

View File

@@ -131,14 +131,14 @@
<a
v-if="!this.$auth.loggedIn"
:href="
'https://api.modrinth.com/api/v1/auth/init?url=http://localhost:3000' +
'https://api.modrinth.com/api/v1/auth/init?url=http://modrinth.com' +
this.$route.path
"
class="log-in-button"
>Log In</a
>
<div v-if="this.$auth.loggedIn" class="avatar">
<img :src="this.$auth.user.avatar_url" />
<img :src="this.$auth.user.avatar_url" alt="avatar" />
<span> {{ this.$auth.user.username }} </span>
</div>
<div v-if="this.$auth.loggedIn" class="notifications">
@@ -221,10 +221,7 @@ export default {
}
},
created() {
if (this.$route.query.code) {
this.$auth.setUserToken(this.$route.query.code)
console.log(this.$auth.user)
}
if (this.$route.query.code) this.$auth.setUserToken(this.$route.query.code)
},
beforeMount() {
const theme = localStorage.getItem('data-theme')