Disabled login for now
This commit is contained in:
parent
758d7e4cef
commit
bce9c008b8
2 changed files with 61 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue