mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
Merge pull request #1905 from jumpserver/pr@dev@confirm
fix: oauth bind confirm url
This commit is contained in:
@@ -287,6 +287,9 @@ export default {
|
||||
]
|
||||
},
|
||||
confirmUrl() {
|
||||
return '/api/v1/authentication/confirm-oauth/'
|
||||
},
|
||||
bindOrUNBindUrl() {
|
||||
let url = ''
|
||||
if (!this.object[`is_${this.currentEdit}_bound`]) {
|
||||
url = `/core/auth/${this.currentEdit}/qr/bind/?redirect_url=${this.$route.fullPath}`
|
||||
@@ -319,7 +322,7 @@ export default {
|
||||
return backendList
|
||||
},
|
||||
verifyDone() {
|
||||
const url = this.confirmUrl
|
||||
const url = this.bindOrUNBindUrl
|
||||
if (!this.object[`is_${this.currentEdit}_bound`]) {
|
||||
window.location.href = url
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user