PageSourceSearch

https://tasteofcity.com/Area/UserProfile/Scripts/JsModel/LoginController.js

js tasteofcity.com collected 2026-10-03 17:36:03 UTC 1,194 bytes, 34 lines download raw bytes

1app.controller('LoginController', function ($scope, Loginservice) {
2    $scope.users = [];
3    $scope.user = null;
4    $scope.UserId = null;
5    
6    
7    ////// for check user Login or NOT 
8    $scope.DoLogin = function (user) {
9         
10        if (user.$valid) {
11            
12            var currentUser = { UserName: $scope.UserName, Password: $scope.Password }
13            var flag = Loginservice.Login(currentUser).success(function (data) {
14                $scope.users = data;
15                if (data.TransactionMessage.Status == "0") {
16                    $scope.UserId = data.UserId;
17                    $('#hdUserID').val(data.UserId);
18                    window.location.href = location.href.split('#')[0]; ///// Refresh Page
19                }
20                else {
21                    $scope.error = data.TransactionMessage.Message;
22                    $('#AlertMsg').show();
23                }
24            }).error(function (data) {
25                $scope.error = "An Error has occured while Updating user! " + data.ExceptionMessage;
26            });
27        }
28    }
29
30
31    $scope.HideMsg = function () {
32        $('#AlertMsg').hide();
33    }
34});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.