File tree Expand file tree Collapse file tree
src/identity-server/templates/core/authenticator/bankid/enter-personalnumber Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #*
2+ * Copyright (C) 2025 Curity AB. All rights reserved.
3+ *
4+ * The contents of this file are the property of Curity AB.
5+ * You may not copy or use this file, in either source code
6+ * or executable form, except in compliance with terms
7+ * set by Curity AB.
8+ *
9+ * For further information, please contact Curity AB.
10+ *###
11+
12+ ## redirect to the same URL
13+ #set ($_callbackUrl = "")
14+ ## using a GET
15+ #set ($_callbackMethod = "get")
16+ #define($_formContent)
17+ ## providing 'navigator.maxTouchPoints' in the 'nmtp' query-string variable
18+ <input type="hidden" name="nmtp" id="nmtp"/>
19+ <script type="text/javascript" $!nonceAttr>
20+ const nmtp = navigator.maxTouchPoints
21+ document.getElementById("nmtp").setAttribute("value", "" + nmtp)
22+ </script>
23+
24+ ## just to ensure the query-string is not empty and we do not endup on an infinit loop
25+ <input type="hidden" name="ctx" value="1" />
26+ #end
27+ #parse("layouts/redirect")
You can’t perform that action at this time.
0 commit comments