Browse Source

aaaa

confirmation-email
J 11 years ago
parent
commit
143c84717c
3 changed files with 6 additions and 5 deletions
  1. +3
    -2
      Sevomin.Models/Helpers/SevominUserValidator.cs
  2. +1
    -1
      Sevomin.WebFrontend/Properties/PublishProfiles/Publish.pubxml
  3. +2
    -2
      Sevomin.WebFrontend/Web.config

+ 3
- 2
Sevomin.Models/Helpers/SevominUserValidator.cs View File

@ -29,8 +29,9 @@ namespace Sevomin.Models.Helpers
if (item is Dovomin)
{
MailChimpManager mc = new MailChimpManager("c754265c9000101952cc0d6b129c7505-us6");
MembersResult members = mc.GetAllMembersForList("0b009d31b7", "subscribed");
if (!members.Data.Any(m => m.Email == item.UserName))
//MembersResult members = mc.GetAllMembersForList("0b009d31b7", "subscribed");
var a = mc.GetMemberInfo("0b009d31b7", new List<MailChimp.Helper.EmailParameter>() { new MailChimp.Helper.EmailParameter() { Email = item.UserName } });
if (a.Data.Count == 0)
errors.Add("شما در مرحله اولیه در خبرنامه سومین عضو نشده اید. به زودی عضویت برای عموم باز می شود، لطفا در خبرنامه عضو شوید.");
}
return errors.Any() ?


+ 1
- 1
Sevomin.WebFrontend/Properties/PublishProfiles/Publish.pubxml View File

@ -10,7 +10,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>C:\Dev\Vanda\Publish\Sevomin\beta1</publishUrl>
<publishUrl>C:\Dev\Vanda\Publish\Sevomin\beta1.1</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>

+ 2
- 2
Sevomin.WebFrontend/Web.config View File

@ -15,8 +15,8 @@
</configSections>
<connectionStrings>
<clear />
<!--<add name="UsersConnectionString" connectionString="Data Source=codiato;Initial Catalog=Sevomin;Integrated Security=True;Pooling=False" providerName="System.Data.SqlClient" />-->
<add name="UsersConnectionString" connectionString="Data Source=mssql01.anaxanet.com;Initial Catalog=sdojgdbf_sevomin;Persist Security Info=True;User ID=sdojgdbf_sevomin;Password=thIsI3aSecuR3P@$Th@7caNtbEFoun3;MultipleActiveResultSets=True;Pooling=False" providerName="System.Data.SqlClient" />
<add name="UsersConnectionString" connectionString="Data Source=codiato;Initial Catalog=Sevomin;Integrated Security=True;Pooling=False" providerName="System.Data.SqlClient" />
<!--<add name="UsersConnectionString" connectionString="Data Source=mssql01.anaxanet.com;Initial Catalog=sdojgdbf_sevomin;Persist Security Info=True;User ID=sdojgdbf_sevomin;Password=thIsI3aSecuR3P@$Th@7caNtbEFoun3;MultipleActiveResultSets=True;Pooling=False" providerName="System.Data.SqlClient" />-->
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />


Loading…
Cancel
Save