mirror of
https://github.com/Luzifer/ots.git
synced 2025-05-20 15:00:41 -04:00
Fix: Transmit secret using POST method
This ensures bigger payloads can be used as secrets Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8392561125
commit
a5ca9d248e
3 changed files with 64 additions and 60 deletions
|
@ -7,6 +7,7 @@ createSecret = () ->
|
|||
secret = GibberishAES.enc(secret, securePassword)
|
||||
|
||||
$.ajax 'api/create',
|
||||
method: "post"
|
||||
data:
|
||||
secret: secret
|
||||
dataType: "json"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by CoffeeScript 2.3.0
|
||||
// Generated by CoffeeScript 2.3.1
|
||||
(function() {
|
||||
var createSecret, dataNotFound, hashLoad, initBinds, newSecret, requestSecret, secretCreated, securePassword, showData, somethingWrong;
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
|||
securePassword = Math.random().toString(36).substring(2);
|
||||
secret = GibberishAES.enc(secret, securePassword);
|
||||
$.ajax('api/create', {
|
||||
method: "post",
|
||||
data: {
|
||||
secret: secret
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue