mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-07-01 21:03:46 +08:00
Some checks failed
Frontend Lint & Test / test (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot EE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Publish Chatwoot CE docker images / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Run Chatwoot CE spec / test (push) Has been cancelled
Publish Chatwoot EE docker images / merge (push) Has been cancelled
Publish Chatwoot CE docker images / merge (push) Has been cancelled
Co-authored-by: Muhsin Keloth <[email protected]>
68 lines
1.8 KiB
JavaScript
68 lines
1.8 KiB
JavaScript
import { frontendURL } from 'dashboard/helper/URLHelper';
|
|
|
|
import Login from './login/Index.vue';
|
|
import SamlLogin from './login/Saml.vue';
|
|
import Signup from './auth/signup/Index.vue';
|
|
import ResetPassword from './auth/reset/password/Index.vue';
|
|
import Confirmation from './auth/confirmation/Index.vue';
|
|
import PasswordEdit from './auth/password/Edit.vue';
|
|
|
|
export default [
|
|
{
|
|
path: frontendURL('login'),
|
|
name: 'login',
|
|
component: Login,
|
|
props: route => ({
|
|
config: route.query.config,
|
|
email: route.query.email,
|
|
ssoAuthToken: route.query.sso_auth_token,
|
|
ssoAccountId: route.query.sso_account_id,
|
|
ssoConversationId: route.query.sso_conversation_id,
|
|
authError: route.query.error,
|
|
}),
|
|
},
|
|
{
|
|
path: frontendURL('login/sso'),
|
|
name: 'sso_login',
|
|
component: SamlLogin,
|
|
meta: { requireEnterprise: true },
|
|
props: route => ({
|
|
authError: route.query.error,
|
|
target: route.query.target,
|
|
}),
|
|
},
|
|
{
|
|
path: frontendURL('auth/signup'),
|
|
name: 'auth_signup',
|
|
component: Signup,
|
|
meta: { requireSignupEnabled: true },
|
|
},
|
|
{
|
|
path: frontendURL('auth/confirmation'),
|
|
name: 'auth_confirmation',
|
|
component: Confirmation,
|
|
meta: { ignoreSession: true },
|
|
props: route => ({
|
|
config: route.query.config,
|
|
confirmationToken: route.query.confirmation_token,
|
|
redirectUrl: route.query.route_url,
|
|
}),
|
|
},
|
|
{
|
|
path: frontendURL('auth/password/edit'),
|
|
name: 'auth_password_edit',
|
|
component: PasswordEdit,
|
|
meta: { ignoreSession: true },
|
|
props: route => ({
|
|
config: route.query.config,
|
|
resetPasswordToken: route.query.reset_password_token,
|
|
redirectUrl: route.query.route_url,
|
|
}),
|
|
},
|
|
{
|
|
path: frontendURL('auth/reset/password'),
|
|
name: 'auth_reset_password',
|
|
component: ResetPassword,
|
|
},
|
|
];
|