Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement