If you are concerned about performance in your DotNetNuke websites like I am, here is a quick and easy performance enhancement.
Recent versions of DotNetNuke have added a check to warn you if you are using "admin" or "host" as a username.
This check happens on every page request, and is not needed IMO.
To remove this warning, simply delete the following lines of code from Default.aspx.vb 'check if running with known account defaults
Dim messageText As String = ""
If Request.IsAuthenticated = True And String.IsNullOrEmpty(Request.QueryString("runningDefault")) = False Then
Dim userInfo As UserInfo = HttpContext.Current.Items("UserInfo")
'only show message to default users
If (userInfo.Username.ToLower = "admin") OrElse (userInfo.Username.ToLower = "host") Then
messageText = RenderDefaultsWarning()
Dim messageTitle As String = Services.Localization.Localization.GetString("InsecureDefaults.Title", Services.Localization.Localization.GlobalResourceFile)
UI.Skins.Skin.AddPageMessage(CType(ctlSkin, DotNetNuke.UI.Skins.Skin), messageTitle.ToString, messageText.ToString, Skins.Controls.ModuleMessage.ModuleMessageType.RedError)
End If
End If |