We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0f30c commit 74efef9Copy full SHA for 74efef9
ui/src/api/type/user.ts
@@ -29,6 +29,7 @@ interface User {
29
language?: string
30
workspace_list?: Array<any>
31
role_name?: Array<any>
32
+ source?: string
33
}
34
35
interface LoginRequest {
ui/src/layout/layout-header/avatar/index.vue
@@ -188,7 +188,11 @@ const openResetPassword = () => {
188
189
const logout = () => {
190
login.logout().then(() => {
191
- router.push({name: 'login', query: {login_mode: 'manual'}})
+ if (user?.userInfo?.source && ['CAS', 'OIDC', 'OAuth2'].includes(user.userInfo.source)) {
192
+ router.push({name: 'login', query: {login_mode: 'manual'}})
193
+ } else {
194
+ router.push({name: 'login'})
195
+ }
196
})
197
198
0 commit comments