Commit cf0176b6 authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

implementing aes security

parent 3fb83614
......@@ -23,6 +23,19 @@
<label>Description:</label><br>
<textarea id="appdesc" maxlength="200" class="form-control" name="appdesc" rows="5"></textarea>
</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>
<div class="form-group">
<button type="submit" class="btn btn-primary">Create Application</button>
......
......@@ -604,7 +604,7 @@ def new_automation():
@app.route('/automation-rm')
def alarm_rm():
def automation_rm():
if 'name' in session:
nq.delete(session['appkey'], request.args.get('devid'), request.args.get('id'))
tr.delete(session['appkey'], request.args.get('devid'), request.args.get('id'))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment