Browse Source

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

tags/3.0.0
Chris Woodward 1 year ago
parent
commit
2c43e7fe58

+ 0
- 3
Teknik/Areas/API/Controllers/APIv1Controller.cs View File

@@ -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
}

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

[HttpPost]
[AllowAnonymous]
[TrackPageView]
public ActionResult Shorten(APIv1ShortenModel model)
{

+ 6
- 6
Teknik/Areas/About/Views/About/Index.cshtml View File

@@ -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>

+ 2
- 4
Teknik/Areas/Paste/Controllers/PasteController.cs View File

@@ -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
public class PasteController : DefaultController
{
[TrackPageView]
[AllowAnonymous]
public ActionResult Index()
{
ViewBag.Title = "Paste - " + Config.Title;
@@ -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
return View("~/Areas/Paste/Views/Paste/Index.cshtml", model);
}
}
}
}

+ 0
- 2
Teknik/Areas/Shortener/Controllers/ShortenerController.cs View File

@@ -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
}

[HttpPost]
[AllowAnonymous]
public ActionResult ShortenUrl(string url)
{
if (url.IsValidUrl())

+ 0
- 2
Teknik/Areas/Upload/Controllers/UploadController.cs View File

@@ -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
}

[HttpPost]
[AllowAnonymous]
public ActionResult Upload(string fileType, string fileExt, string iv, int keySize, int blockSize, bool encrypt, HttpPostedFileWrapper data)
{
try

+ 0
- 4
Teknik/Areas/Vault/Controllers/VaultController.cs View File

@@ -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

[HttpGet]
[TrackPageView]
[AllowAnonymous]
public ActionResult NewVaultFromService(string type, string items)
{
ViewBag.Title = "Create Vault";
@@ -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
}

[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult ValidateItem(string type, string url)
{

Loading…
Cancel
Save