Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vladislav Rykov
THSO.server
Commits
9d4efd7b
Commit
9d4efd7b
authored
Oct 01, 2020
by
Vladislav Rykov
Browse files
secure_key c-styled for admins
parent
278c4c44
Changes
1
Show whitespace changes
Inline
Side-by-side
app/app/templates/views/admin/user-application.html
View file @
9d4efd7b
...
...
@@ -100,7 +100,7 @@
<div
class=
"card"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
Security key (HEX)
</h5>
<p
class=
"card-text"
>
{{ app[5]
}}
</p>
<p
class=
"card-text"
id=
"secure_key"
>
{{ app[5].decode('UTF-8')
}}
</p>
</div>
</div>
</div>
...
...
@@ -147,3 +147,17 @@
</div>
</div>
{% endblock %}
{% block script %}
<script
type=
"text/javascript"
>
var
skey
=
document
.
getElementById
(
"
secure_key
"
).
innerHTML
;
var
fskey
=
"
{
"
;
for
(
var
i
=
0
;
i
<
skey
.
length
-
2
;
i
+=
2
)
{
fskey
+=
"
0x
"
+
(
skey
[
i
]
+
skey
[
i
+
1
])
+
"
,
"
;
}
fskey
+=
"
0x
"
+
skey
[
skey
.
length
-
2
]
+
skey
[
skey
.
length
-
1
]
+
"
}
"
;
$
(
"
#secure_key
"
).
text
(
fskey
);
</script>
{% endblock %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment