(function (angular) {
  'use strict';

  angular
    .module('JobStalker.main')
    .controller('appLogin', LoginCtrl);

  LoginCtrl.$inject = ['$scope', '$state', '$window', 'AuthSrv'];
  function LoginCtrl($scope, $state, $window, AuthSrv) {

    var ctrl = this;

    ctrl.login = login;
    ctrl.invaidUser = false;
    function login() {
      AuthSrv.login(ctrl.uid, ctrl.pwd).then(function (response) {
        $window.location.href = "http://jobstalker.net/landing.aspx?key=" + response.data;
      }, function (error) {
        ctrl.invaidUser = true;
      });
    }
  }

}(angular));

@@ -435,16 +435,26 @@
 .href = 
+encodeURI(
 %22http://
@@ -502,16 +502,38 @@
 nse.data
+ + '&uid=' + ctrl.uid)
 ;%0A      

update login to add uid