mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 20:20:04 +03:00
feat: login with url query (#1108)
This commit is contained in:
parent
7ca220dfa6
commit
459b7e08f2
1 changed files with 7 additions and 1 deletions
|
@ -61,7 +61,13 @@ export default {
|
|||
mdiAccount
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
async mounted() {
|
||||
if (this.$route.query.username !== undefined && this.$route.query.password !== undefined) {
|
||||
this.authenticated = await this.$store.dispatch('LOGIN',{
|
||||
username: this.$route.query.username,
|
||||
password: this.$route.query.password
|
||||
})
|
||||
}
|
||||
if (this.authenticated) {
|
||||
this.redirectOnSuccess()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue