12 lines
480 B
JavaScript
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.");
|
|
}
|
|
})
|
|
} |