Zablokowano dostep do tworzenia kont przez randomow

This commit is contained in:
Bartosz Chyzy 2018-12-19 20:25:54 +01:00
parent 15830cf648
commit 88edf07e00
3 changed files with 6 additions and 2 deletions

View File

@ -136,7 +136,7 @@ namespace Forum.Controllers
//
// GET: /Account/Register
[AllowAnonymous]
[Authorize]
public ActionResult Register()
{
return View();
@ -145,7 +145,7 @@ namespace Forum.Controllers
//
// POST: /Account/Register
[HttpPost]
[AllowAnonymous]
[Authorize]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Register(RegisterViewModel model)
{

View File

@ -222,6 +222,8 @@
<Content Include="Content\bootstrap.css.map" />
<Content Include="Content\bootstrap-theme.min.css.map" />
<Content Include="Content\bootstrap-theme.css.map" />
<None Include="Properties\PublishProfiles\forum-inzynieria1 - FTP.pubxml" />
<None Include="Properties\PublishProfiles\forum-inzynieria1 - Web Deploy.pubxml" />
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
<Content Include="Scripts\jquery-3.3.1.js" />
<Content Include="Scripts\jquery-3.3.1.min.js" />

View File

@ -191,6 +191,8 @@
<Content Include="ApplicationInsights.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Properties\PublishProfiles\mailsender-inzynieria1 - FTP.pubxml" />
<None Include="Properties\PublishProfiles\mailsender-inzynieria1 - Web Deploy.pubxml" />
<None Include="Scripts\jquery-3.3.1.intellisense.js" />
<Content Include="Scripts\jquery-3.3.1.js" />
<Content Include="Scripts\jquery-3.3.1.min.js" />