@sowell/quasar-app-extension-auth 0.3.20 → 0.3.21
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/package.json
CHANGED
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
</div>
|
|
79
79
|
<div
|
|
80
80
|
class="column col justify-center content-center mobile"
|
|
81
|
-
:style="
|
|
82
|
-
:class="!
|
|
81
|
+
:style="IS_MANAGER ? 'background: #eef8fd' : ''"
|
|
82
|
+
:class="!IS_MANAGER ? 'bgBlue' : ''"
|
|
83
83
|
>
|
|
84
84
|
<img
|
|
85
|
-
v-if="
|
|
85
|
+
v-if="IS_MANAGER"
|
|
86
86
|
src="../../assets/illustration-login.svg"
|
|
87
87
|
class="q-pl-md q-pr-md logoWhite"
|
|
88
88
|
/>
|
|
@@ -151,6 +151,7 @@ export default defineComponent({
|
|
|
151
151
|
icons,
|
|
152
152
|
} = useAuth();
|
|
153
153
|
|
|
154
|
+
const IS_MANAGER = ["manager", "clean_manager"].includes(X_REQUESTED_ROLES);
|
|
154
155
|
const isNotification = ref(false);
|
|
155
156
|
const infoDialog = ref({
|
|
156
157
|
title: "",
|
|
@@ -167,7 +168,6 @@ export default defineComponent({
|
|
|
167
168
|
password.value.length > 5
|
|
168
169
|
),
|
|
169
170
|
);
|
|
170
|
-
const isManager = computed(() => X_REQUESTED_ROLES === "clean_manager");
|
|
171
171
|
const resetPassword = async (email: string) => {
|
|
172
172
|
const data = {
|
|
173
173
|
auth: {
|
|
@@ -206,7 +206,7 @@ export default defineComponent({
|
|
|
206
206
|
forgottenPassword,
|
|
207
207
|
emailResetPassword,
|
|
208
208
|
isNotification,
|
|
209
|
-
|
|
209
|
+
IS_MANAGER,
|
|
210
210
|
WELCOME_SUBTITLE,
|
|
211
211
|
WELCOME_TITLE,
|
|
212
212
|
isSubmitBtnDisabled,
|
package/src/composables/auth.ts
CHANGED
package/src/routes/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ const {
|
|
|
12
12
|
} = prompts;
|
|
13
13
|
|
|
14
14
|
// FIXME: Utiliser le UI_PAGE pour choisir les page a utiliser pour la version web ou mobile (auth et reset password)
|
|
15
|
-
const webAuthRoles = ["superadmin", "clean_manager"];
|
|
15
|
+
const webAuthRoles = ["superadmin", "clean_manager", "manager"];
|
|
16
16
|
|
|
17
17
|
let mobileAuthPage = "";
|
|
18
18
|
|