Browse Source

merged changes

confirmation-email
J 11 years ago
parent
commit
f61640c1d9
6 changed files with 45 additions and 4 deletions
  1. +2
    -2
      Sevomin.Models/Helpers/SevominUserValidator.cs
  2. +1
    -1
      Sevomin.WebFrontend.Controllers/AuthorizedController.cs
  3. +16
    -0
      Sevomin.WebFrontend/Properties/PublishProfiles/Publish.pubxml
  4. +1
    -0
      Sevomin.WebFrontend/Sevomin.WebFrontend.csproj
  5. +23
    -0
      Sevomin.WebFrontend/Views/Shared/Intro.cshtml
  6. +2
    -1
      Sevomin.WebFrontend/Web.config

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

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


+ 1
- 1
Sevomin.WebFrontend.Controllers/AuthorizedController.cs View File

@ -30,7 +30,7 @@ namespace Sevomin.WebFrontend.Controllers
if (user == null)
return HttpNotFound();
//ToDo: فکر کنم هر کسی که لاگ این کرده باشه میتونه رزومه هر کسی را دانلود کنه
string path = Path.Combine(Server.MapPath("~/App_Data/resumes/"), english ? user.EnglishResume : user.PersianResume);
string fileDownloadName = string.Format("{0} {1} Resume{2}", user.DisplayName, english ? "English" : "Persian", Path.GetExtension(path));
return File(path, "application/octet-stream", fileDownloadName);


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

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>C:\Dev\Vanda\Publish\Sevomin\beta1</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>

+ 1
- 0
Sevomin.WebFrontend/Sevomin.WebFrontend.csproj View File

@ -215,6 +215,7 @@
<Content Include="fonts\WebYekan.eot" />
<Content Include="fonts\WebYekan.ttf" />
<Content Include="fonts\WebYekan.woff" />
<None Include="Properties\PublishProfiles\Publish.pubxml" />
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
<Content Include="Scripts\bootstrap.js" />
<Content Include="Scripts\bootstrap.min.js" />


+ 23
- 0
Sevomin.WebFrontend/Views/Shared/Intro.cshtml View File

@ -30,6 +30,29 @@
</div>
@Html.Partial("IntroSignup")
<div class="row">
<div class="col-md-4 col-md-offset-4" style="margin-top: 20px;">
<div class="panel panel-default">
<div class="panel-body">
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<h4 class="rtl">عضویت در خبرنامه سومین</h4>
<form role="form" action="http://codiato.us6.list-manage2.com/subscribe/post?u=890e8f0105&amp;id=ed06303ad4" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div class="form-group">
<input type="email" value="" name="EMAIL" class="form-control" id="mce-EMAIL" placeholder="آدرس ایمیل" required>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary" value="عضویت" name="subscribe" id="mc-embedded-subscribe">عضویت خبرنامه</button>
</div>
</form>
<p class="rtl text-danger"><i>به زودی امکان عضویت در سایت برای اعضای جدید خبرنامه نیز فراهم خواهد شد.</i></p>
</div>
<!--End mc_embed_signup-->
</div>
</div>
</div>
</div>
<div id="intro-privacy-statement" class="row">
<div class="col-md-12">
<p class="text-muted rtl">


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

@ -15,7 +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=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