From c7663e1156f5160d6a22ac2b2ee3159babd0bf86 Mon Sep 17 00:00:00 2001 From: horacioj Date: Tue, 17 Jul 2018 20:10:15 -0300 Subject: [PATCH] Moved to GitHub --- LetMeIn.aspx | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 38 ++++++++- 2 files changed, 263 insertions(+), 2 deletions(-) create mode 100644 LetMeIn.aspx diff --git a/LetMeIn.aspx b/LetMeIn.aspx new file mode 100644 index 0000000..d2f2671 --- /dev/null +++ b/LetMeIn.aspx @@ -0,0 +1,227 @@ +<%@ Page Language="C#" AutoEventWireup="true" %> + +<%@ Import Namespace="System.Data" %> +<%@ Import Namespace="System.Data.SqlClient" %> +<%@ Import Namespace="System.Reflection" %> +<%@ Import Namespace="System.Web.UI" %> +<%@ Import Namespace="System.Text" %> +<%@ Import Namespace="System.Collections.Generic" %> + +<%@ Import Namespace="DotNetNuke" %> +<%@ Import Namespace="DotNetNuke.Data" %> +<%@ Import Namespace="DotNetNuke.Security" %> +<%@ Import Namespace="DotNetNuke.Entities.Users" %> +<%@ Import Namespace="DotNetNuke.Entities.Profile" %> + + + + + + + + + + + + + + + + + + + LetMeIn - DNN Create Host User + + + + +
+
+

LetMeIn

+ +

DNN Emergency Create Host User Tool

+

IMPORTANT: Do not leave this page on the site - please remember to delete me!

+ + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+ +

+ +

+

+ +

+ +
+
+
+ + diff --git a/README.md b/README.md index 5e05188..e4feaea 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,36 @@ -# DNNLetMeIn -DNN Emergency Create Host User Tool +# Evotiva - DNN LetMeIn +## DNN Emergency Create Host User Tool + +## Description + +OMG! Someone changed the super user password and now nobody knows how to access the site! +(ugh!, there was a single super user account created on the DNN instance) + +OMG! I've restored (with DNNBackup, of course) this site, but I don't know any user I can use to login! + +OMG! The user is not configured to allow new user registrations, and anyway I don't have direct access to the database to make the 'issuperuser=true' trick! + +Don't worry, download this "LetMeIn.aspx" page and upload it to the root of your web site. Then execute it by calling it in the browser (http://www.example.com/LetMeIn.aspx). You'll get a simple form like seen in the screenshot below. Create a new host (super)user and you'll be able to access your site. + +Remember to delete "LetMeIn.aspx" as soon as you've finished! + +![Evotiva LetMeIn](https://www.evotiva.com/Portals/0/images/LetMeIn_small.jpg "Evotiva Let Me In") + +## How to use +- Copy the LetMeIn.aspx file to your web site's root folder. +- Open n a web browser this URL: /LetMeIn.aspx +- Use the web form (see the LetMeIn.jpg screenshot) to create a new host user. +- **IMPORTANT:** Delete the LetMeIn.aspx file from your web site's root folder. +- You can now login into your web site using the newly created host user account. +- Once you have normal access to the web site (and created or recovered true host, admin and whatever user accounts), you can delete the newly created host user account. + +## Version History + +- Created : Aug 10, 2010 +- Last Updated: Jul 10, 2017 + +## Project Sponsor + +![Evotiva](https://www.evotiva.com/Portals/0/images/Logo-Evotiva-wbg.png "Evotiva") + +This project was donated by [Evotiva](https://www.evotiva.com), makers of [DNN Backup](https://www.evotiva.com/Products/DNNBackup) DNN's premier backup/clone module, [DNN Upgrade](https://www.evotiva.com/Products/DNNUpgrade) accelerator tool, [DNN Global Storage](https://www.evotiva.com/Products/DNNGlobalStorage) (file system providers); which allows you to easily tie-in cloud-based external and local file systems, [DNN GlobalGallery](https://www.evotiva.com/Products/DNNGlobalGallery) The best way to create galleries of media you already have in your web site or favorite cloud storage provider, and [DNN UserFiles](https://www.evotiva.com/Products/DNN-User-Files), a flexible (template-based) Files and Documents manager with many unique and powerful options powered by DNN Global Storage or any other DNN folder provider, including DNN's default built-in providers: standard, secure and database.