Browse Source

Changed Uploads, Pastes, and URL Shortening to private only.

pull/111/head
Chris Woodward 4 years ago
parent
commit
2c43e7fe58
  1. 3
      Teknik/Areas/API/Controllers/APIv1Controller.cs
  2. 12
      Teknik/Areas/About/Views/About/Index.cshtml
  3. 6
      Teknik/Areas/Paste/Controllers/PasteController.cs
  4. 2
      Teknik/Areas/Shortener/Controllers/ShortenerController.cs
  5. 2
      Teknik/Areas/Upload/Controllers/UploadController.cs
  6. 4
      Teknik/Areas/Vault/Controllers/VaultController.cs

3
Teknik/Areas/API/Controllers/APIv1Controller.cs

@ -33,7 +33,6 @@ namespace Teknik.Areas.API.Controllers @@ -33,7 +33,6 @@ namespace Teknik.Areas.API.Controllers
}
[HttpPost]
[AllowAnonymous]
[TrackPageView]
public ActionResult Upload(APIv1UploadModel model)
{
@ -184,7 +183,6 @@ namespace Teknik.Areas.API.Controllers @@ -184,7 +183,6 @@ namespace Teknik.Areas.API.Controllers
}
[HttpPost]
[AllowAnonymous]
[TrackPageView]
public ActionResult Paste(APIv1PasteModel model)
{
@ -232,7 +230,6 @@ namespace Teknik.Areas.API.Controllers @@ -232,7 +230,6 @@ namespace Teknik.Areas.API.Controllers
}
[HttpPost]
[AllowAnonymous]
[TrackPageView]
public ActionResult Shorten(APIv1ShortenModel model)
{

12
Teknik/Areas/About/Views/About/Index.cshtml

@ -103,37 +103,37 @@ @@ -103,37 +103,37 @@
<td class="text-left">Pastebin</td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-times fa-2x text-danger"></i></td>
</tr>
<tr>
<td class="text-left">File Uploads</td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-times fa-2x text-danger"></i></td>
</tr>
<tr>
<td class="text-left">Max Upload Filesize</td>
<td class="text-center">@StringHelper.GetBytesReadable(Model.Config.UploadConfig.MaxUploadSizePremium)</td>
<td class="text-center">@StringHelper.GetBytesReadable(Model.Config.UploadConfig.MaxUploadSizeBasic)</td>
<td class="text-center">@StringHelper.GetBytesReadable(Model.Config.UploadConfig.MaxUploadSize)</td>
<td class="text-center"><i class="fa fa-times fa-2x text-danger"></i></td>
</tr>
<tr>
<td class="text-left">Max Embedded Filesize</td>
<td class="text-center">Unlimited</td>
<td class="text-center">@StringHelper.GetBytesReadable(Model.Config.UploadConfig.MaxDownloadSize)</td>
<td class="text-center">@StringHelper.GetBytesReadable(Model.Config.UploadConfig.MaxDownloadSize)</td>
<td class="text-center"><i class="fa fa-times fa-2x text-danger"></i></td>
</tr>
<tr>
<td class="text-left">Url Shortening</td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-times fa-2x text-danger"></i></td>
</tr>
<tr>
<td class="text-left">Vault Creation</td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-check fa-2x text-success"></i></td>
<td class="text-center"><i class="fa fa-times fa-2x text-danger"></i></td>
</tr>
<tr>
<td class="text-left">Technical Podcasts</td>

6
Teknik/Areas/Paste/Controllers/PasteController.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
@ -23,7 +23,6 @@ namespace Teknik.Areas.Paste.Controllers @@ -23,7 +23,6 @@ namespace Teknik.Areas.Paste.Controllers
public class PasteController : DefaultController
{
[TrackPageView]
[AllowAnonymous]
public ActionResult Index()
{
ViewBag.Title = "Paste - " + Config.Title;
@ -147,7 +146,6 @@ namespace Teknik.Areas.Paste.Controllers @@ -147,7 +146,6 @@ namespace Teknik.Areas.Paste.Controllers
}
[HttpPost]
[AllowAnonymous]
public ActionResult Paste([Bind(Include = "Content, Title, Syntax, ExpireLength, ExpireUnit, Password, Hide")]PasteCreateViewModel model)
{
if (ModelState.IsValid)
@ -190,4 +188,4 @@ namespace Teknik.Areas.Paste.Controllers @@ -190,4 +188,4 @@ namespace Teknik.Areas.Paste.Controllers
return View("~/Areas/Paste/Views/Paste/Index.cshtml", model);
}
}
}
}

2
Teknik/Areas/Shortener/Controllers/ShortenerController.cs

@ -18,7 +18,6 @@ namespace Teknik.Areas.Shortener.Controllers @@ -18,7 +18,6 @@ namespace Teknik.Areas.Shortener.Controllers
public class ShortenerController : DefaultController
{
[TrackPageView]
[AllowAnonymous]
public ActionResult Index()
{
ViewBag.Title = "Url Shortener - " + Config.Title;
@ -45,7 +44,6 @@ namespace Teknik.Areas.Shortener.Controllers @@ -45,7 +44,6 @@ namespace Teknik.Areas.Shortener.Controllers
}
[HttpPost]
[AllowAnonymous]
public ActionResult ShortenUrl(string url)
{
if (url.IsValidUrl())

2
Teknik/Areas/Upload/Controllers/UploadController.cs

@ -30,7 +30,6 @@ namespace Teknik.Areas.Upload.Controllers @@ -30,7 +30,6 @@ namespace Teknik.Areas.Upload.Controllers
// GET: Upload/Upload
[HttpGet]
[TrackPageView]
[AllowAnonymous]
public ActionResult Index()
{
ViewBag.Title = "Teknik Upload - End to End Encryption";
@ -53,7 +52,6 @@ namespace Teknik.Areas.Upload.Controllers @@ -53,7 +52,6 @@ namespace Teknik.Areas.Upload.Controllers
}
[HttpPost]
[AllowAnonymous]
public ActionResult Upload(string fileType, string fileExt, string iv, int keySize, int blockSize, bool encrypt, HttpPostedFileWrapper data)
{
try

4
Teknik/Areas/Vault/Controllers/VaultController.cs

@ -103,7 +103,6 @@ namespace Teknik.Areas.Vault.Controllers @@ -103,7 +103,6 @@ namespace Teknik.Areas.Vault.Controllers
[HttpGet]
[TrackPageView]
[AllowAnonymous]
public ActionResult NewVault()
{
ViewBag.Title = "Create Vault";
@ -114,7 +113,6 @@ namespace Teknik.Areas.Vault.Controllers @@ -114,7 +113,6 @@ namespace Teknik.Areas.Vault.Controllers
[HttpGet]
[TrackPageView]
[AllowAnonymous]
public ActionResult NewVaultFromService(string type, string items)
{
ViewBag.Title = "Create Vault";
@ -239,7 +237,6 @@ namespace Teknik.Areas.Vault.Controllers @@ -239,7 +237,6 @@ namespace Teknik.Areas.Vault.Controllers
}
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult CreateVault(ModifyVaultViewModel model)
{
@ -415,7 +412,6 @@ namespace Teknik.Areas.Vault.Controllers @@ -415,7 +412,6 @@ namespace Teknik.Areas.Vault.Controllers
}
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult ValidateItem(string type, string url)
{

Loading…
Cancel
Save