mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-22 03:39:37 +00:00
Update OpenID auth URI construction in login page
This commit is contained in:
parent
c7c21cc137
commit
16873d3c3e
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue