Clean up and based on review comments

This commit is contained in:
Bjarke Berg
2020-06-11 11:21:07 +02:00
parent 57b8ab201d
commit f86d8185bf
10 changed files with 13 additions and 15 deletions

View File

@@ -23,10 +23,6 @@ namespace Umbraco.Extensions
{
services.AddAntiforgery();
//We need to have runtime compilation of views when using backoffice. We could consider having only this when a specific config is set.
//But as far as I can see, there are still precompiled views, even when this is activated, so maybe it is okay.
services.AddControllersWithViews().AddRazorRuntimeCompilation();
services
.AddAuthentication(Constants.Security.BackOfficeAuthenticationType)
.AddCookie(Constants.Security.BackOfficeAuthenticationType);