aboutsummaryrefslogtreecommitdiffstats
path: root/shim_app.py
diff options
context:
space:
mode:
authorkj_sh6042026-04-03 02:42:36 -0400
committerkj_sh6042026-04-03 02:42:36 -0400
commit97d55ccdc97ef7b0cc28ded5ebbb46c1879291ce (patch)
tree51eb613c9a8b8bbff9f78940b70dea65817464a4 /shim_app.py
parentf22c51507eb59cf843f1baca2ad7626fd351f33d (diff)
refactor: better email validation
Diffstat (limited to 'shim_app.py')
-rw-r--r--shim_app.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/shim_app.py b/shim_app.py
index 6137f15..4cc3dec 100644
--- a/shim_app.py
+++ b/shim_app.py
@@ -171,7 +171,7 @@ SHELL_TEMPLATE = """<!doctype html>
<button type="submit">logout</button>
</form>
{% else %}
- <a href="https://youtu.be/XGxIE1hr0w4" target="_blank">🦄</a>
+ <a href="https://youtu.be/XGxIE1hr0w4" target="_blank">🧷</a>
{% endif %}
</nav>
</header>
@@ -196,8 +196,8 @@ SETUP_BODY_TEMPLATE = """
<p>first startup detected. <br><br> create the initial admin account to continue.</p>
<form method="post" action="{{ url_for('setup_submit') }}" class="stack" autocomplete="off">
<label>
- username or email
- <input name="username" type="text" required minlength="2" maxlength="254" placeholder="admin username" autocomplete="new-password" autocapitalize="none" autocorrect="off" spellcheck="false" data-lpignore="true" data-unlock-readonly="1" readonly>
+ username <strong>(admin)</strong>
+ <input name="username" type="text" required minlength="2" maxlength="254" autocomplete="new-password" autocapitalize="none" autocorrect="off" spellcheck="false" data-lpignore="true" data-unlock-readonly="1" readonly>
</label>
<label>
password
@@ -218,7 +218,7 @@ LOGIN_BODY_TEMPLATE = """
<p>a no-frills, "hackfoo" static site hosting solution</p>
<form method="post" action="{{ url_for('login_submit') }}" class="stack" autocomplete="off">
<label>
- username or email
+ username
<input name="username" type="text" required minlength="2" maxlength="254" autocomplete="new-password" autocapitalize="none" autocorrect="off" spellcheck="false" data-lpignore="true" data-unlock-readonly="1" readonly>
</label>
<label>
@@ -322,7 +322,7 @@ DASHBOARD_BODY_TEMPLATE = """
<h2>create user</h2>
<form method="post" action="{{ url_for('admin_create_user') }}" class="stack" autocomplete="off">
<label>
- username or email
+ username
<input type="text" name="username" required minlength="2" maxlength="254" autocomplete="new-password" autocapitalize="none" autocorrect="off" spellcheck="false" data-lpignore="true" data-unlock-readonly="1" readonly>
</label>
<label>