@lifeaitools/clauth 1.5.3 → 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.
- package/cli/commands/serve.js +19 -15
- package/package.json +1 -1
package/cli/commands/serve.js
CHANGED
|
@@ -689,8 +689,10 @@ function dashboardHtml(port, whitelist, isStaged = false) {
|
|
|
689
689
|
<div class="lock-icon">🔒</div>
|
|
690
690
|
<div class="lock-title">clauth vault</div>
|
|
691
691
|
<div class="lock-sub" id="lock-sub">Paste your password to unlock</div>
|
|
692
|
-
<
|
|
693
|
-
|
|
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
|
-
<
|
|
771
|
-
<div class="chpw-
|
|
772
|
-
<
|
|
773
|
-
|
|
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-
|
|
776
|
-
<
|
|
777
|
-
<
|
|
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
|
-
</
|
|
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">
|