mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 00:05:27 +02:00
Fix dynamic route requests, add auth middleware
This commit is contained in:
parent
7ef977b783
commit
db2f2d6660
11 changed files with 29 additions and 25 deletions
|
@ -34,16 +34,11 @@ export default {
|
|||
watch: {
|
||||
user(newVal) {
|
||||
if (newVal) {
|
||||
// if (process.env.NODE_ENV !== 'production') {
|
||||
if (this.$route.query.redirect) {
|
||||
this.$router.replace(this.$route.query.redirect)
|
||||
} else {
|
||||
this.$router.replace('/')
|
||||
}
|
||||
|
||||
// } else {
|
||||
// window.location.reload()
|
||||
// }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -56,7 +51,7 @@ export default {
|
|||
async submitForm() {
|
||||
this.error = null
|
||||
this.processing = true
|
||||
// var uri = `${process.env.serverUrl}/auth`
|
||||
|
||||
var payload = {
|
||||
username: this.username,
|
||||
password: this.password || ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue