diff --git a/mojotrollz/page/default_login/default_login.php b/mojotrollz/page/default_login/default_login.php index 7ac4be5..0e22991 100644 --- a/mojotrollz/page/default_login/default_login.php +++ b/mojotrollz/page/default_login/default_login.php @@ -1,6 +1,10 @@ "); + location.reload(true); + } else { + $('.help-block').html("Login not successfull. User & Password combination wrong.") + } + }); + event.preventDefault(); + } + }); + + $("#logout_form input").not("[type=submit]").jqBootstrapValidation({ + preventSubmit: true, + submitError: function($form, event, errors) {}, + submitSuccess: function($form, event){ + $.get('./api.php?call=account&action=logout', function (data) { + if(data == 1){ + $('.help-block').html("Logout successfull."); + location.reload(true); + } else { + $('.help-block').html("Logout not successfull.") + } + }); + event.preventDefault(); + } + }); +} \ No newline at end of file diff --git a/mojotrollz/page/default_login/tpl/loggedin.tpl b/mojotrollz/page/default_login/tpl/loggedin.tpl new file mode 100644 index 0000000..77c7b57 --- /dev/null +++ b/mojotrollz/page/default_login/tpl/loggedin.tpl @@ -0,0 +1,10 @@ +