This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch dft
in repository https://gitbox.apache.org/repos/asf/pulsar-manager.git


The following commit(s) were added to refs/heads/dft by this push:
     new ea1bb6c  update
ea1bb6c is described below

commit ea1bb6cd8e33ad543dfdfff5634e623a3567ab09
Author: Li Li <[email protected]>
AuthorDate: Thu Feb 23 17:19:19 2023 +0800

    update
    
    Signed-off-by: Li Li <[email protected]>
---
 front-end/src/main.js               | 4 ++--
 front-end/src/views/login/index.vue | 9 +++++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/front-end/src/main.js b/front-end/src/main.js
index afac975..c0960b4 100644
--- a/front-end/src/main.js
+++ b/front-end/src/main.js
@@ -45,7 +45,7 @@ Object.keys(filters).forEach(key => {
 
 Vue.config.productionTip = false
 
-import Casdoor from 'casdoor-vue-sdk'
+// import Casdoor from 'casdoor-vue-sdk'
 import VueCompositionAPI from '@vue/composition-api'
 const config = {
   serverUrl: "http://localhost:7001";,
@@ -55,7 +55,7 @@ const config = {
   redirectPath: "/#callback",
 };
 Vue.use(VueCompositionAPI)
-Vue.use(Casdoor,config)
+// Vue.use(Casdoor,config)
 new Vue({
   el: '#app',
   router,
diff --git a/front-end/src/views/login/index.vue 
b/front-end/src/views/login/index.vue
index c5894c6..09bb69b 100644
--- a/front-end/src/views/login/index.vue
+++ b/front-end/src/views/login/index.vue
@@ -53,7 +53,7 @@
       </el-form-item>
 
       <el-button :loading="loading" type="primary" 
style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">{{ 
$t('login.logIn') }}</el-button>
-      <el-button :loading="loading" type="primary" 
style="width:100%;margin-left:0;" @click="loginWithCasdoor">{{ 
$t('login.casdoor') }}</el-button>
+      <!-- <el-button :loading="loading" type="primary" 
style="width:100%;margin-left:0;" @click="loginWithCasdoor">{{ 
$t('login.casdoor') }}</el-button> -->
       <!-- <el-button class="thirdparty-button" type="primary" 
@click="showDialog=true">
               Or connect with
             </el-button> -->
@@ -182,7 +182,12 @@ export default {
       })
     },
     loginWithCasdoor() {
-      window.location.href = this.getSigninUrl();
+      window.location.href = 'http://localhost:7001/login/oauth/authorize' +
+        '?client_id=6ba06c1e1a30929fdda7' +
+        '&response_type=code' +
+        '&redirect_uri=http://localhost:9527/callback' +
+        '&scope=read' +
+        '&state=pulsar'
     }
   }
 }

Reply via email to