Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.LoginCheck = function () {
- var User = {
- UserName: $scope.uName,
- Password: $scope.password
- };
- var getData = PayrollService.UserLogin(User.UserName,User.Password);
- getData.then(function (msg) {
- window.location.href = "/Home/Index";
- }, function (e) {
- if (e.data == "Not Success") {
- $scope.msg = "Username and password is incorrect !";
- clearFields();
- }
- });
- }
- enter code here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement