/// <summary> /// Deletes two factor for particular user and provider. When it fails, i.e. two factor token is not found, just logs /// error and returns because it is not necessary to further handle this kind of error /// </summary> /// <param name="userId">Id of user for whom 2factor token was issued</param> /// <param name="provider">Name of 2factor provider who issued token</param> public void DeleteTwoFactorTokenForUser(int userId, string provider) { try { m_userUoW.DeleteTwoFactorTokenForUser(userId, provider); } catch (NoResultException <TwoFactorLoginEntity> e) { m_logger.LogWarning(e); } catch (DatabaseException e) { m_logger.LogWarning(e); } }