ADD function to press Enter to confirm password #13
This commit is contained in:
parent
42eee8574c
commit
60d3219f7e
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
|
@ -188,7 +188,7 @@ HTML = """<!doctype html>
|
||||||
<a id="info" href="/system/info">Info</a>
|
<a id="info" href="/system/info">Info</a>
|
||||||
<div id="pw-panel">
|
<div id="pw-panel">
|
||||||
<label>Password protection</label>
|
<label>Password protection</label>
|
||||||
<input id="pw-input" type="password" placeholder="New password…"/>
|
<input id="pw-input" type="password" placeholder="New password…" onkeydown="if(event.key==='Enter')setPassword()"/>
|
||||||
<div class="pw-btns">
|
<div class="pw-btns">
|
||||||
<button onclick="setPassword()">Set</button>
|
<button onclick="setPassword()">Set</button>
|
||||||
<button onclick="genPassword()">Generate</button>
|
<button onclick="genPassword()">Generate</button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue