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); }
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); }
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); }
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); }