Disabled login for now

This commit is contained in:
Antonio de la Rosa 2021-05-02 01:39:46 +02:00
parent 758d7e4cef
commit bce9c008b8
2 changed files with 61 additions and 15 deletions

View file

@ -1,14 +1,30 @@
<form id="admin_login_form">
${content_form|n}
<p><input type="submit" value="${lang('admin', 'send', 'Send')}"/></p>
</form>
<script>
$.ajax({
url: "${url_for('.admin_login')}",
data: {},
success: function(data) {
},
dataType: 'json'
$('#admin_login_form').submit( function () {
$.ajax({
url: "${url_for('.login')}",
data: {},
success: function(data) {
if(!data.error) {
}
else {
}
},
type: 'POST',
dataType: 'json'
});
});
</script>