Example #1
0
        public Boolean SaveOTPDetails(string i_sConnectionString, int OTPConfigMasterId, int i_nUserInfo, string EmailID, string OTPCode, int OTPExpirationTime)
        {
            try
            {
                using (TwoFactorAuthDAL objSaveOTPAuthDAL = new TwoFactorAuthDAL())
                {
                    objSaveOTPAuthDAL.SaveOTPDetails(i_sConnectionString, OTPConfigMasterId, i_nUserInfo, EmailID, OTPCode, OTPExpirationTime);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }

            return(true);
        }
Example #2
0
        public List <OTPConfigurationDTO> GetUserDeatailsForOTP(string i_sConnectionString, string userLoginId)
        {
            List <OTPConfigurationDTO> lstUserLoginDetails = new List <OTPConfigurationDTO>();

            try
            {
                using (TwoFactorAuthDAL objOTPAuthDAL = new TwoFactorAuthDAL())
                {
                    lstUserLoginDetails = objOTPAuthDAL.GetUserDeatailsForOTP(i_sConnectionString, userLoginId).ToList();
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }
            return(lstUserLoginDetails);
        }
Example #3
0
        public int ValidateOTPDetails(string i_sConnectionString, int OTPConfigMasterId, int i_nUserInfo, string OTPCode)
        {
            int ret_result = 0;

            try
            {
                using (TwoFactorAuthDAL objSaveOTPAuthDAL = new TwoFactorAuthDAL())
                {
                    ret_result = objSaveOTPAuthDAL.ValidateOTPDetails(i_sConnectionString, OTPConfigMasterId, i_nUserInfo, OTPCode);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }

            return(ret_result);
        }
Example #4
0
        public bool CheckIsOTPActived(string i_sConnectionString, string LoggedInId)
        {
            bool bReturn = false;

            try
            {
                using (TwoFactorAuthDAL objOTPAuthDAL = new TwoFactorAuthDAL())
                {
                    bReturn = objOTPAuthDAL.CheckIsOTPActived(i_sConnectionString, LoggedInId);
                }
            }
            catch (Exception exp)
            {
                throw exp;
            }

            return(bReturn);
        }