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
cf0176b6
Commit
cf0176b6
authored
May 18, 2020
by
Vladislav Rykov
Browse files
implementing aes security
parent
3fb83614
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/app/__pycache__/views.cpython-37.pyc
View file @
cf0176b6
No preview for this file type
app/app/templates/public/new-app.html
View file @
cf0176b6
...
@@ -23,6 +23,19 @@
...
@@ -23,6 +23,19 @@
<label>
Description:
</label><br>
<label>
Description:
</label><br>
<textarea
id=
"appdesc"
maxlength=
"200"
class=
"form-control"
name=
"appdesc"
rows=
"5"
></textarea>
<textarea
id=
"appdesc"
maxlength=
"200"
class=
"form-control"
name=
"appdesc"
rows=
"5"
></textarea>
</div>
</div>
<br>
<table
class=
"table"
>
<tr>
<td>
<label
for=
"secure"
>
Secure:
</label>
</td>
<td>
<input
type=
"checkbox"
class=
"form-control"
id=
"secure"
name=
"secure"
value=
"true"
>
</td>
</tr>
</table>
<p>
Note, if you use secure option, make sure your device uses aes128 ctr with the corresponding key.
</p>
<br>
<br>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Create Application
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
Create Application
</button>
...
...
app/app/views.py
View file @
cf0176b6
...
@@ -604,7 +604,7 @@ def new_automation():
...
@@ -604,7 +604,7 @@ def new_automation():
@
app
.
route
(
'/automation-rm'
)
@
app
.
route
(
'/automation-rm'
)
def
a
larm
_rm
():
def
a
utomation
_rm
():
if
'name'
in
session
:
if
'name'
in
session
:
nq
.
delete
(
session
[
'appkey'
],
request
.
args
.
get
(
'devid'
),
request
.
args
.
get
(
'id'
))
nq
.
delete
(
session
[
'appkey'
],
request
.
args
.
get
(
'devid'
),
request
.
args
.
get
(
'id'
))
tr
.
delete
(
session
[
'appkey'
],
request
.
args
.
get
(
'devid'
),
request
.
args
.
get
(
'id'
))
tr
.
delete
(
session
[
'appkey'
],
request
.
args
.
get
(
'devid'
),
request
.
args
.
get
(
'id'
))
...
...
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