uBrokenWindow 1.0.0

dotnet add package uBrokenWindow --version 1.0.0
                    
NuGet\Install-Package uBrokenWindow -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="uBrokenWindow" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="uBrokenWindow" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="uBrokenWindow" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add uBrokenWindow --version 1.0.0
                    
#r "nuget: uBrokenWindow, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package uBrokenWindow@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=uBrokenWindow&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=uBrokenWindow&version=1.0.0
                    
Install as a Cake Tool

uBrokenWindow

The worst possible password reset utility, specially built for Umbraco.

uBrokenWindow allows you to create a new backoffice user account on application startup, just by setting a few values in your appsettings.json file.

Yes, this is a horrible thing to install on your website, but sometimes you're put in a bad situation where you're given a database without a way to log into the backoffice. The Umbraco reset admin password process doesn't always work, this is much quicker (and dirtier).

I'd recommend installing this package only for only as long as necessary.

Configuration

Add the following configuration to one of your appsettings.json files:

{
  "uBrokenWindow": {
    "EnableBrokenWindow": false,
    "NewAdminEmail": "",
    "NewAdminPassword": ""
  }
}

On application startup, this package will check to ensure that the EnableBrokenWindow setting is set to true. A new user will be created only if an account with the provided email address does not already exist.

The username and email address will both bet set to the same value.

Check your application logs for confirmation and error messages.

CAUTION

DO NOT commit the NewAdminPassword value to your repository.

Cleanup

Once you're in, disable this package, and hell, even just uninstall it. Be sure to remove the configuration block, too.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 103 4/16/2026

Initial release.