@sowell/quasar-app-extension-auth 0.3.19 → 0.3.20
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 +1 -1
- package/src/composables/auth.ts +7 -11
package/package.json
CHANGED
package/src/composables/auth.ts
CHANGED
|
@@ -87,23 +87,19 @@ export function useAuth() {
|
|
|
87
87
|
if (requestedRoles) options.headers["x-requested-roles"] = requestedRoles;
|
|
88
88
|
|
|
89
89
|
try {
|
|
90
|
-
await authState.signin(data, options)
|
|
90
|
+
await authState.signin(data, options)
|
|
91
|
+
loading.value = false;
|
|
91
92
|
// @ts-ignore
|
|
92
93
|
if (!window.Cypress) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
JSON.parse(localStorage.getItem("credentials")).email !== data.auth.email;
|
|
97
|
-
|
|
98
|
-
if (isDifferentUser) {
|
|
99
|
-
localStorage.setItem("credentials", JSON.stringify(data.auth));
|
|
100
|
-
}
|
|
94
|
+
// FIXME: encrypt password
|
|
95
|
+
localStorage.setItem("credentials", JSON.stringify(data.auth))
|
|
101
96
|
}
|
|
102
97
|
push(LOCAL_SUCCESS_REDIRECTION_ROUTE);
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
}
|
|
99
|
+
catch(err) {
|
|
105
100
|
loading.value = false;
|
|
106
101
|
}
|
|
102
|
+
|
|
107
103
|
};
|
|
108
104
|
|
|
109
105
|
const isSubmitBtnDisabled = () => {
|