@lifeaitools/clauth 1.5.2 → 1.5.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.
@@ -688,9 +688,11 @@ function dashboardHtml(port, whitelist, isStaged = false) {
688
688
  <div class="lock-card">
689
689
  <div class="lock-icon">🔒</div>
690
690
  <div class="lock-title">clauth vault</div>
691
- <div class="lock-sub">Paste your password to unlock</div>
692
- <input class="lock-input" id="lock-input" type="password" placeholder="••••••••••••" autocomplete="off">
693
- <button class="btn-unlock" id="unlock-btn" onclick="unlock()">Unlock</button>
691
+ <div class="lock-sub" id="lock-sub">Paste your password to unlock</div>
692
+ <form onsubmit="unlock();return false;" autocomplete="on">
693
+ <input class="lock-input" id="lock-input" type="password" placeholder="••••••••••••" autocomplete="current-password">
694
+ <button class="btn-unlock" id="unlock-btn" type="submit">Unlock</button>
695
+ </form>
694
696
  <div class="lock-err" id="lock-err"></div>
695
697
  </div>
696
698
  </div>
@@ -767,21 +769,23 @@ function dashboardHtml(port, whitelist, isStaged = false) {
767
769
 
768
770
  <div class="chpw-panel" id="chpw-panel">
769
771
  <h3>Change Master Password</h3>
770
- <div class="chpw-row">
771
- <div class="chpw-field">
772
- <label>New password</label>
773
- <input class="chpw-input" id="chpw-new" type="password" placeholder="min 8 chars" autocomplete="new-password">
772
+ <form onsubmit="changePassword();return false;" autocomplete="on">
773
+ <div class="chpw-row">
774
+ <div class="chpw-field">
775
+ <label>New password</label>
776
+ <input class="chpw-input" id="chpw-new" type="password" placeholder="min 8 chars" autocomplete="new-password">
777
+ </div>
778
+ <div class="chpw-field">
779
+ <label>Confirm</label>
780
+ <input class="chpw-input" id="chpw-confirm" type="password" placeholder="repeat" autocomplete="new-password">
781
+ </div>
774
782
  </div>
775
- <div class="chpw-field">
776
- <label>Confirm</label>
777
- <input class="chpw-input" id="chpw-confirm" type="password" placeholder="repeat" autocomplete="new-password">
783
+ <div class="chpw-foot">
784
+ <button class="btn-chpw-save" type="submit">Update Password</button>
785
+ <button class="btn-cancel" type="button" onclick="toggleChangePw()">Cancel</button>
786
+ <span class="chpw-msg" id="chpw-msg"></span>
778
787
  </div>
779
- </div>
780
- <div class="chpw-foot">
781
- <button class="btn-chpw-save" onclick="changePassword()">Update Password</button>
782
- <button class="btn-cancel" onclick="toggleChangePw()">Cancel</button>
783
- <span class="chpw-msg" id="chpw-msg"></span>
784
- </div>
788
+ </form>
785
789
  </div>
786
790
 
787
791
  <div class="tunnel-panel" id="tunnel-panel">
@@ -1775,16 +1779,8 @@ let tunnelPollTimer = null;
1775
1779
 
1776
1780
  async function pollTunnel() {
1777
1781
  if (tunnelPollTimer) clearInterval(tunnelPollTimer);
1778
- // Give server 4s grace to run fetchTunnelConfig before showing "not_started" UI
1779
1782
  const r = await apiFetch("/tunnel");
1780
- if (r && r.status !== "not_started") {
1781
- renderTunnelPanel(r.status, r.url, r.error);
1782
- } else {
1783
- renderTunnelPanel("starting", null, null); // show spinner while server initialises
1784
- await new Promise(res => setTimeout(res, 4000));
1785
- const r2 = await apiFetch("/tunnel");
1786
- if (r2) renderTunnelPanel(r2.status, r2.url, r2.error);
1787
- }
1783
+ if (r) renderTunnelPanel(r.status, r.url, r.error);
1788
1784
  // Poll every 3s; slow to 10s once live
1789
1785
  tunnelPollTimer = setInterval(async () => {
1790
1786
  const r = await apiFetch("/tunnel");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/clauth",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
5
  "type": "module",
6
6
  "bin": {