@dskripchenko/laravel-admin 1.10.12 → 1.10.15
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -26285,11 +26285,15 @@ const oq = "http://www.w3.org/2000/svg", cq = (a, t, n, d = []) => [`<${t}`, ...
|
|
|
26285
26285
|
}
|
|
26286
26286
|
}
|
|
26287
26287
|
async function v() {
|
|
26288
|
+
if (m.value === "") {
|
|
26289
|
+
f.value = "Введите текущий пароль.";
|
|
26290
|
+
return;
|
|
26291
|
+
}
|
|
26288
26292
|
if (window.confirm("Отключить 2FA? Аккаунт станет менее защищённым.")) {
|
|
26289
|
-
p.value = !0;
|
|
26293
|
+
p.value = !0, f.value = "";
|
|
26290
26294
|
try {
|
|
26291
26295
|
const { getAdminClient: q } = await Promise.resolve().then(() => _e);
|
|
26292
|
-
await q().post("/profile/twoFactorDisable"), r.value = "idle", ue.success("2FA отключена."), d("disabled");
|
|
26296
|
+
await q().post("/profile/twoFactorDisable", { password: m.value }), r.value = "idle", ue.success("2FA отключена."), d("disabled");
|
|
26293
26297
|
} catch {
|
|
26294
26298
|
ue.error("Не удалось отключить 2FA.");
|
|
26295
26299
|
} finally {
|