ngx-xtroedge-cms 1.3.3 → 1.3.4

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.mjs CHANGED
@@ -1776,8 +1776,8 @@ var XtroedgeCMS = class _XtroedgeCMS {
1776
1776
  <div class="lcms-login-title">Builder Login</div>
1777
1777
  <div class="lcms-login-sub">Sign in to access edit mode</div>
1778
1778
  <div class="lcms-login-field">
1779
- <label class="lcms-login-label">Email or Username</label>
1780
- <input class="lcms-login-input" id="lcms-login-email" type="text" placeholder="Enter your email or username" autocomplete="username" />
1779
+ <label class="lcms-login-label">Username</label>
1780
+ <input class="lcms-login-input" id="lcms-login-email" type="text" placeholder="Enter your username" autocomplete="username" />
1781
1781
  </div>
1782
1782
  <div class="lcms-login-field">
1783
1783
  <label class="lcms-login-label">Password</label>
@@ -1807,7 +1807,7 @@ var XtroedgeCMS = class _XtroedgeCMS {
1807
1807
  const btn = document.getElementById("lcms-login-btn");
1808
1808
  const errorEl = document.getElementById("lcms-login-error");
1809
1809
  if (!email || !password) {
1810
- errorEl.textContent = "Please enter your email/username and password.";
1810
+ errorEl.textContent = "Please enter your username and password.";
1811
1811
  errorEl.classList.add("visible");
1812
1812
  return;
1813
1813
  }
@@ -1819,7 +1819,7 @@ var XtroedgeCMS = class _XtroedgeCMS {
1819
1819
  const res = await fetch(loginUrl, {
1820
1820
  method: "POST",
1821
1821
  headers: { "Content-Type": "application/json" },
1822
- body: JSON.stringify({ email, password })
1822
+ body: JSON.stringify({ username: email, password })
1823
1823
  });
1824
1824
  if (!res.ok) throw new Error(`HTTP ${res.status}`);
1825
1825
  const data = await res.json();