Files
lubelog/wwwroot/js/login.js
2024-01-04 15:41:43 -07:00

12 lines
480 B
JavaScript

function performLogin() {
var userName = $("#inputUserName").val();
var userPassword = $("#inputUserPassword").val();
var isPersistent = $("#inputPersistent").is(":checked");
$.post('/Login/Login', {userName: userName, password: userPassword, isPersistent: isPersistent}, function (data) {
if (data) {
window.location.href = '/Home';
} else {
errorToast("Invalid Login Credentials, please try again.");
}
})
}