public authenticateUserResponse1 authenticateUser(authenticateUserRequest request)
        {
            SettingInitializer.Initialize();
            authenticateUserResponse1 oResponse = null;
            //[email protected] = true;  
            try
            {
                //var loginResult = Checkuser(request.authenticateUser.arg0, request.authenticateUser.arg1);
                bool isValidUser = this.ValidateUserCage(request.authenticateUser.arg0, request.authenticateUser.arg1);
                if (isValidUser)
                {
                    //SecurityHelper.HasAccess("CashdeskOperator.MainScreen.cs.Tickets");
                    oResponse = new authenticateUserResponse1() { authenticateUserResponse = new authenticateUserResponse() { @return = new userDTO() { actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = false, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, signOnFailureReason = "LoginSuccesful", userId = 1, userName = request.authenticateUser.arg0 } } };
                    LogManager.WriteLog("authenticateUser: Login Result--> LoginSuccesful", LogManager.enumLogLevel.Info);
                }
                else
                {
                    oResponse = new authenticateUserResponse1() { authenticateUserResponse = new authenticateUserResponse() { @return = new userDTO() { actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = true, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, userId = 1, signOnFailureReason = "LoginFailed", userName = request.authenticateUser.arg0 } } };
                    LogManager.WriteLog("authenticateUser: Login Result--> LoginFailed", LogManager.enumLogLevel.Info);
                }

            }
            catch (Exception Ex)
            {
                ExceptionManager.Publish(Ex);
            }
            return oResponse;

        }
        public authenticateUserResponse1 authenticateUser(authenticateUserRequest request)
        {
            SettingInitializer.Initialize();  
            authenticateUserResponse1 oResponse =null;
            //[email protected] = true;  
            try
            {
                var loginResult = Checkuser(request.authenticateUser.arg0, request.authenticateUser.arg1);
                if (loginResult == SecurityHelper.LoginResults.LoginSuccesful)
                {
                    SecurityHelper.HasAccess("CashdeskOperator.MainScreen.cs.Tickets");
                    oResponse = new authenticateUserResponse1() { authenticateUserResponse = new authenticateUserResponse() { @return = new userDTO() { actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = false, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, signOnFailureReason = loginResult.ToString() , userId = 1, userName = request.authenticateUser.arg0 } } };
                }
                else
                {
                    oResponse = new authenticateUserResponse1() { authenticateUserResponse = new authenticateUserResponse() { @return = new userDTO() { actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = true, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, userId = 1, signOnFailureReason = loginResult.ToString(), userName = request.authenticateUser.arg0 } } };
                }

            }
            catch (Exception Ex)
            {
                ExceptionManager.Publish(Ex); 
            }
            return oResponse;

        }
Ejemplo n.º 3
0
        public authenticateUserResponse authenticateUser(authenticateUser authenticateUser1)
        {
            authenticateUserRequest inValue = new authenticateUserRequest();

            inValue.authenticateUser = authenticateUser1;
            authenticateUserResponse1 retVal = ((FrameworkEndPoint)(this)).authenticateUser(inValue);

            return(retVal.authenticateUserResponse);
        }
Ejemplo n.º 4
0
        public authenticateUserResponse1 authenticateUser(authenticateUserRequest request)
        {
            SettingInitializer.Initialize();
            authenticateUserResponse1 oResponse = null;

            //[email protected] = true;
            try
            {
                //var loginResult = Checkuser(request.authenticateUser.arg0, request.authenticateUser.arg1);
                bool isValidUser = this.ValidateUserCage(request.authenticateUser.arg0, request.authenticateUser.arg1);
                if (isValidUser)
                {
                    //SecurityHelper.HasAccess("CashdeskOperator.MainScreen.cs.Tickets");
                    oResponse = new authenticateUserResponse1()
                    {
                        authenticateUserResponse = new authenticateUserResponse()
                        {
                            @return = new userDTO()
                            {
                                actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = false, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, signOnFailureReason = "LoginSuccesful", userId = 1, userName = request.authenticateUser.arg0
                            }
                        }
                    };
                    LogManager.WriteLog("authenticateUser: Login Result--> LoginSuccesful", LogManager.enumLogLevel.Info);
                }
                else
                {
                    oResponse = new authenticateUserResponse1()
                    {
                        authenticateUserResponse = new authenticateUserResponse()
                        {
                            @return = new userDTO()
                            {
                                actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = true, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, userId = 1, signOnFailureReason = "LoginFailed", userName = request.authenticateUser.arg0
                            }
                        }
                    };
                    LogManager.WriteLog("authenticateUser: Login Result--> LoginFailed", LogManager.enumLogLevel.Info);
                }
            }
            catch (Exception Ex)
            {
                ExceptionManager.Publish(Ex);
            }
            return(oResponse);
        }
Ejemplo n.º 5
0
        public authenticateUserResponse1 authenticateUser(authenticateUserRequest request)
        {
            SettingInitializer.Initialize();
            authenticateUserResponse1 oResponse = null;

            //[email protected] = true;
            try
            {
                var loginResult = Checkuser(request.authenticateUser.arg0, request.authenticateUser.arg1);
                if (loginResult == SecurityHelper.LoginResults.LoginSuccesful)
                {
                    SecurityHelper.HasAccess("CashdeskOperator.MainScreen.cs.Tickets");
                    oResponse = new authenticateUserResponse1()
                    {
                        authenticateUserResponse = new authenticateUserResponse()
                        {
                            @return = new userDTO()
                            {
                                actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = false, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, signOnFailureReason = loginResult.ToString(), userId = 1, userName = request.authenticateUser.arg0
                            }
                        }
                    };
                }
                else
                {
                    oResponse = new authenticateUserResponse1()
                    {
                        authenticateUserResponse = new authenticateUserResponse()
                        {
                            @return = new userDTO()
                            {
                                actorLoginFails = 0, confirmPassword = request.authenticateUser.arg1, daysSincePwdChange = 10, employeeCard = "0", employeeLockStatus = true, errorPresent = true, firstName = request.authenticateUser.arg0, lastName = request.authenticateUser.arg0, userId = 1, signOnFailureReason = loginResult.ToString(), userName = request.authenticateUser.arg0
                            }
                        }
                    };
                }
            }
            catch (Exception Ex)
            {
                ExceptionManager.Publish(Ex);
            }
            return(oResponse);
        }
Ejemplo n.º 6
0
 authenticateUserResponse1 FrameworkEndPoint.authenticateUser(authenticateUserRequest request)
 {
     return(base.Channel.authenticateUser(request));
 }