-
Notifications
You must be signed in to change notification settings - Fork 0
sonalisharma8146/Nature_Gallery_Final_Project
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
1. Open the Solution in Visual Studio 2. Build the project 3. Navigate to tools ans select Nuget Package manager -> Package Manager Console (PMC) 4. On the console execute the following command Update-Database -Context Nature_Gallery_IdentityContext 5. On the console execute the following command Update-Database -Context Nature_Gallery_DataContext 6. After migration is successful Run the project 7 if you login as admin from the following credentials will be able to see the Publishers and Photo Upload records User : admin@nature.com Password: 1qaz2wsX@ 8. Also you can login with the following credentials to visit the site as a publisher will be only able to see own published images and will be able to edit them User : gary@nature.com Password: 1qaz2wsX@ 9 You can sign up as a new publisher using the publisher registration link 10 if you need to create another admin login with the admin credentials on step 7 above and Click in "Register an Admin User" register a new admin The Authentication and authorization related inofrmtion was obtained from the following links Role based access control. https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles?view=aspnetcore-3.0 ASP.NET MVC 5 Security And Creating User Role https://www.c-sharpcorner.com/UploadFile/asmabegam/Asp-Net-mvc-5-security-and-creating-user-role/
About
Major Project
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published