added logout button.

This commit is contained in:
ivancheahhh
2024-01-04 16:51:45 -07:00
parent 83470a9a6c
commit e856e9d6ba
3 changed files with 25 additions and 1 deletions

View File

@@ -20,4 +20,11 @@ function loadSettings() {
$.get('/Home/Settings', function (data) {
$("#settings-tab-pane").html(data);
});
}
function performLogOut() {
$.post('/Login/LogOut', function (data) {
if (data) {
window.location.href = '/Login';
}
})
}