Email Confirmation
This commit is contained in:
parent
31588c0d86
commit
509c817863
41 changed files with 148 additions and 6788 deletions
|
|
@ -7,6 +7,7 @@ using Microsoft.EntityFrameworkCore;
|
|||
using Microsoft.AspNetCore.Diagnostics;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Yavsc.Server.Helpers;
|
||||
using Org.BouncyCastle.Asn1.X509.Qualified;
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
|
|
@ -100,7 +101,16 @@ namespace Yavsc.Controllers
|
|||
public IActionResult Error()
|
||||
{
|
||||
var feature = this.HttpContext.Features.Get<IExceptionHandlerFeature>();
|
||||
|
||||
if (feature == null) return View();
|
||||
var errorType = feature?.Error;
|
||||
if (errorType == null) return View();
|
||||
if (errorType is NotSupportedException notSupported)
|
||||
{
|
||||
return View(new ErrorViewModel {
|
||||
Description = notSupported.Message,
|
||||
RequestId = this.HttpContext.TraceIdentifier
|
||||
});
|
||||
}
|
||||
return View("~/Views/Shared/Error.cshtml", feature?.Error);
|
||||
}
|
||||
public IActionResult Status(int id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue