This project is made by Rasmus Jensen for Umbraco
The solution uses Entity Framework. The database will be instantiated when the program is run the first time. The location of the Tables can be seen in appsettings.json If the database is deleted, it will be reinstantiated on the next run.
To give a User Admin priviliges, you will need to make a few tweaks in the database.
- Run the application.
- Register a User.
- Close application.
- In Visual Studio, Go to View -> SQL Server Object Explorer.
- Expand "Databases" -> Expand "Acme_Identity" -> Expand "Tables".
- Right Click "dbo.AspNetRoles" and select "View Data".
- Set Id and Name of the first row. Id = 1, Name = Admin.
- Right Click "dbo.AspNetUsers" and select "View Data".
- Copy the Id of the User you wish to give admin priviliges (You may need to expand the Id column to make it work).
- Right Click "dbo.AspNetUserRoles" and select "View Data".
- Paste the Id of the User into UserId AND set the RoleId = 1.
- Save all changes.
- Start the application and logout and login
Now the user should have Admin Priviliges :D (If you are still having trouble try to expand the UserId column and check if the entire UserId is correct)
The solution does not contain any pregenerated serialnumbers. The Admin can generate serialnumbers in the "Generator".