inizio del login fatto

This commit is contained in:
2018-12-04 15:39:22 +01:00
parent 9f4872b58a
commit cfe35f4d8a
11 changed files with 300 additions and 13 deletions

View File

@@ -0,0 +1,19 @@
<div class="">
<button class="btn-default btn btn-flat" id="logout-btn">Logout</button>
</div>
<script>
$("#logout-btn").on("click", function () {
$.ajax({
url: "/Account/_logout",
dataType: "json",
type: "POST",
success: function () {
window.location.reload();
},
error: function (xhr, status, error) {
alert(xhr.responseText)
}
})
});
</script>