@oniti/quasar-app-extension-vlank-auth 3.2.25 → 3.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/boot/index.js +3 -2
package/README.md
CHANGED
|
@@ -156,7 +156,7 @@ Route example:
|
|
|
156
156
|
| rights | array of required rights, a message will pop if **any** right is missing! |
|
|
157
157
|
| typeRightCheck | string, "any" or "all" define if all rights are requiered or only one |
|
|
158
158
|
| logoutOnUnsufisantRights | self explaining :) |
|
|
159
|
-
| ignoreAuthRedirect | if true, no redirection will be done on this route (useful for
|
|
159
|
+
| ignoreAuthRedirect | if true, no redirection will be done on this **public** route (useful for pages where you want to preserve query params) |
|
|
160
160
|
|
|
161
161
|
## Helpers
|
|
162
162
|
|
package/package.json
CHANGED
package/src/boot/index.js
CHANGED
|
@@ -9,10 +9,10 @@ export default boot(({ app, router, store }) => {
|
|
|
9
9
|
const config = app.config.globalProperties.$q.config.onitiVlankAuth;
|
|
10
10
|
const configFramework = app.config.globalProperties.$q.config.onitiVlankAuthConfig ? app.config.globalProperties.$q.config.onitiVlankAuthConfig : {};
|
|
11
11
|
|
|
12
|
-
// Fonction permettant de
|
|
12
|
+
// Fonction permettant de gérer la redirection en cas de compte non loggué
|
|
13
13
|
router.beforeEach((to, from, next) => {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Défini les routes de redirection et de login
|
|
16
16
|
*/
|
|
17
17
|
const routesToSet = {
|
|
18
18
|
loginRoute: { default: "defaultAuthRoute", mutation: "SET_LOGIN_ROUTE" },
|
|
@@ -116,6 +116,7 @@ export default boot(({ app, router, store }) => {
|
|
|
116
116
|
{
|
|
117
117
|
path: ":token",
|
|
118
118
|
component: () => import("../components/pages/PasswordReset.vue"),
|
|
119
|
+
meta: { ignoreAuthRedirect: true },
|
|
119
120
|
},
|
|
120
121
|
],
|
|
121
122
|
},
|