diff --git a/Trunk/Server/Forum/Forum/Controllers/AccountController.cs b/Trunk/Server/Forum/Forum/Controllers/AccountController.cs index 6f8940c..1cd3559 100644 --- a/Trunk/Server/Forum/Forum/Controllers/AccountController.cs +++ b/Trunk/Server/Forum/Forum/Controllers/AccountController.cs @@ -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 Register(RegisterViewModel model) { diff --git a/Trunk/Server/Forum/Forum/Forum.csproj b/Trunk/Server/Forum/Forum/Forum.csproj index 5fc9d28..2ecb665 100644 --- a/Trunk/Server/Forum/Forum/Forum.csproj +++ b/Trunk/Server/Forum/Forum/Forum.csproj @@ -222,6 +222,8 @@ + + diff --git a/Trunk/Server/Forum/MailSender/MailSender.csproj b/Trunk/Server/Forum/MailSender/MailSender.csproj index fdba7e8..4e0a161 100644 --- a/Trunk/Server/Forum/MailSender/MailSender.csproj +++ b/Trunk/Server/Forum/MailSender/MailSender.csproj @@ -191,6 +191,8 @@ PreserveNewest + +