daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Sep 26th, 2016 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $scope.LoginCheck = function () {
  2.     var User = {
  3.         UserName: $scope.uName,
  4.         Password: $scope.password
  5.     };
  6.     var getData = PayrollService.UserLogin(User.UserName,User.Password);
  7.  
  8.     getData.then(function (msg) {
  9.         window.location.href = "/Home/Index";
  10.     }, function (e) {
  11.         if (e.data == "Not Success") {
  12.             $scope.msg = "Username and password is incorrect !";
  13.             clearFields();
  14.         }
  15.     });
  16. }
  17.    
  18. enter code here
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top