Esempio n. 1
0
        public UserAuthenticationResponse PassCodeLogin(UserAuthenticationRequest request)
        {
            var response = new UserAuthenticationResponse();

            SurveyResponseProvider surveyResponseImplementation = new SurveyResponseProvider(_surveyResponseDao);

            UserAuthenticationRequestBO passCodeBO = request.ToPassCodeBO();
            bool result = surveyResponseImplementation.ValidateUser(passCodeBO);

            if (result)
            {
                response.Message     = "Invalid Pass Code.";
                response.UserIsValid = true;
            }
            else
            {
                response.UserIsValid = false;
            }

            return(response);
        }
Esempio n. 2
0
        public UserAuthenticationResponse SetPassCode(UserAuthenticationRequest request)
        {
            var response = new UserAuthenticationResponse();

            SurveyResponseProvider surveyResponseImplementation = new SurveyResponseProvider(_surveyResponseDao);

            Epi.Cloud.Common.BusinessObjects.UserAuthenticationRequestBO PassCodeBO = request.ToPassCodeBO();
            surveyResponseImplementation.SavePassCode(PassCodeBO);

            return(response);
        }