Skip to content
Snippets Groups Projects
Commit 1d40942c authored by Phil Höfer's avatar Phil Höfer
Browse files

add regex to key input

parent 0a0fe5e5
No related branches found
No related tags found
1 merge request!20Resolve "Only Allow Input of Valid Keys"
......@@ -10,7 +10,7 @@
</h3>
<form id="key-form" action="<%= baseDir _%>/key/enter" method="post" enctype="multipart/form-data">
<input type="password" name="key" id="key" placeholder="<%=
req.t("key-input.placeholder", {ns: "login"}) _%>" autofocus />
req.t("key-input.placeholder", {ns: "login"}) _%>" autofocus pattern="([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}|[0-9a-z]{6})" />
</form>
</div>
<div id="file-option" class="enter-option">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment