revert changes in Default.cshtml regarding external login providers, as there are still parts of the backoffice using the AngularJS variables

This commit is contained in:
Jacob Overgaard
2024-02-26 10:40:11 +01:00
committed by Sebastiaan Janssen
parent 99f841b7ae
commit f17f5522c0

View File

@@ -16,6 +16,7 @@
@inject IOptions<GlobalSettings> globalSettings
@inject IRuntimeMinifier runtimeMinifier
@inject IProfilerHtml profilerHtml
@inject IBackOfficeExternalLoginProviders externalLogins
@{
bool.TryParse(Context.Request.Query["umbDebug"], out bool isDebug);
var backOfficePath = globalSettings.Value.GetBackOfficePath(hostingEnvironment);
@@ -113,6 +114,8 @@
<script>
document.angularReady = function(app) {
@await Html.AngularValueExternalLoginInfoScriptAsync(externalLogins, ViewData.GetExternalSignInProviderErrors()!)
@Html.AngularValueResetPasswordCodeInfoScript(ViewData[ViewDataExtensions.TokenPasswordResetCode]!)
@await Html.AngularValueTinyMceAssetsAsync(runtimeMinifier)
//required for the noscript trick
document.getElementById("mainwrapper").style.display = "inherit";
@@ -129,3 +132,4 @@
</body>
</html>