manage auth and add secret

This commit is contained in:
2019-11-28 14:36:49 +01:00
parent e965fd3d03
commit 290cb1edc6
4 changed files with 31 additions and 21 deletions

View File

@ -9,7 +9,8 @@
<script src="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
<style type="text/css">h2 { margin: 2em 0em; } .ui.container { padding-top: 5em; padding-bottom: 5em; } </style>
<script type="text/javascript">
function vote(option){$.post( "/", {option}, ( data ) => { $('.modal').modal('show');});}
var key = "{{ .Key }}";
function vote(option){$.post( "/", {option, key}, ( data ) => { $('.modal').modal('show');});}
function reload(){document.location.reload(true);}
</script>