mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-09-10 17:58:02 +02:00
Update OpenID auth URI construction in login page
This commit is contained in:
parent
c7c21cc137
commit
16873d3c3e
@ -132,7 +132,9 @@ export default {
|
|||||||
return this.$store.state.user.user
|
return this.$store.state.user.user
|
||||||
},
|
},
|
||||||
openidAuthUri() {
|
openidAuthUri() {
|
||||||
return `${process.env.serverUrl}/auth/openid?callback=${location.href.split('?').shift()}`
|
const baseUrl = `${window.location.origin}/auth/openid`
|
||||||
|
const callback = encodeURIComponent(window.location.href.split('?').shift())
|
||||||
|
return `${baseUrl}?callback=${callback}`
|
||||||
},
|
},
|
||||||
openIDButtonText() {
|
openIDButtonText() {
|
||||||
return this.authFormData?.authOpenIDButtonText || 'Login with OpenId'
|
return this.authFormData?.authOpenIDButtonText || 'Login with OpenId'
|
||||||
|
Loading…
Reference in New Issue
Block a user