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

allow whitespace before and after key

parent 1d40942c
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 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})" />
req.t("key-input.placeholder", {ns: "login"}) _%>" autofocus pattern="\s*([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})\s*" />
</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.
Please register or to comment