Skip to content

Commit

Permalink
Added new migration and changed admin email
Browse files Browse the repository at this point in the history
  • Loading branch information
smahajan20 committed Dec 3, 2023
1 parent 5b659ca commit ad35dde
Show file tree
Hide file tree
Showing 25 changed files with 12 additions and 12 deletions.
Binary file modified .vs/Bulky/DesignTimeBuild/.dtbcache.v2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .vs/Bulky/v17/.suo
Binary file not shown.
16 changes: 8 additions & 8 deletions Bulky.DataAccess/DbInitializer/DbInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ public void Initialize()
//if roles are not created, then we will create admin user as well
_userManager.CreateAsync(new ApplicationUser
{
UserName = "admin@dotnetmastery.com",
Email = "admin@dotnetmastery.com",
Name = "Bhrugen Patel",
UserName = "admin@shivam.com",
Email = "admin@shivam.com",
Name = "Shivam Mahajan",
PhoneNumber = "1112223333",
StreetAddress = "test 123 Ave",
State = "IL",
StreetAddress = "test 53 Drive",
State = "NY",
PostalCode = "23422",
City = "Chicago"
}, "Admin123*").GetAwaiter().GetResult();
City = "Rochester"
}, "admin123#").GetAwaiter().GetResult();


ApplicationUser user = _db.ApplicationUsers.FirstOrDefault(u => u.Email == "admin@dotnetmastery.com");
ApplicationUser user = _db.ApplicationUsers.FirstOrDefault(u => u.Email == "admin@shivam.com");
_userManager.AddToRoleAsync(user, SD.Role_Admin).GetAwaiter().GetResult();

}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Bulky.DataAccess/bin/Debug/net7.0/Bulky.DataAccess.dll
Binary file not shown.
Binary file modified Bulky.DataAccess/bin/Debug/net7.0/Bulky.DataAccess.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6080ccaef735ea4a3b381aec9c15081d5ff54095
51b8f71cf3774747c0ea8dc61caf4af870b7af48
Binary file modified Bulky.DataAccess/obj/Debug/net7.0/Bulky.DataAccess.dll
Binary file not shown.
Binary file modified Bulky.DataAccess/obj/Debug/net7.0/Bulky.DataAccess.pdb
Binary file not shown.
Binary file modified Bulky.DataAccess/obj/Debug/net7.0/ref/Bulky.DataAccess.dll
Binary file not shown.
Binary file modified Bulky.DataAccess/obj/Debug/net7.0/refint/Bulky.DataAccess.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion BulkyWeb/appsettings.Production.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"DefaultConnection": "Server=tcp:bulky-gaming.database.windows.net,1433;Initial Catalog=bulky;Persist Security Info=False;User ID=sqladmin;Password=admin123#;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
"DefaultConnection": "Server=tcp:bulky-gaming.database.windows.net,1433;Initial Catalog=Bulky;Persist Security Info=False;User ID=sqladmin;Password=admin123#;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
},
"Stripe": {
"SecretKey": "sk_test_51OHFUhFj8UpHPa5twPJvDrrzfcy0t3GVNciLTSYt3cqDHWwWrxlNkVGxbBe5thGfu9fNwOXrFsoSi1cKzUxghcE400zb5WhVeJ",
Expand Down
Binary file modified BulkyWeb/bin/Debug/net7.0/Bulky.DataAccess.dll
Binary file not shown.
Binary file modified BulkyWeb/bin/Debug/net7.0/Bulky.DataAccess.pdb
Binary file not shown.
Binary file modified BulkyWeb/bin/Debug/net7.0/BulkyWeb.dll
Binary file not shown.
Binary file modified BulkyWeb/bin/Debug/net7.0/BulkyWeb.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion BulkyWeb/bin/Debug/net7.0/appsettings.Production.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"DefaultConnection": "Server=tcp:bulky-gaming.database.windows.net,1433;Initial Catalog=bulky;Persist Security Info=False;User ID=sqladmin;Password={admin123#};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
"DefaultConnection": "Server=tcp:bulky-gaming.database.windows.net,1433;Initial Catalog=Bulky;Persist Security Info=False;User ID=sqladmin;Password=admin123#;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;"
},
"Stripe": {
"SecretKey": "sk_test_51OHFUhFj8UpHPa5twPJvDrrzfcy0t3GVNciLTSYt3cqDHWwWrxlNkVGxbBe5thGfu9fNwOXrFsoSi1cKzUxghcE400zb5WhVeJ",
Expand Down
Binary file modified BulkyWeb/obj/Debug/net7.0/BulkyWeb.csproj.AssemblyReference.cache
Binary file not shown.
Binary file modified BulkyWeb/obj/Debug/net7.0/BulkyWeb.dll
Binary file not shown.
Binary file modified BulkyWeb/obj/Debug/net7.0/BulkyWeb.pdb
Binary file not shown.

0 comments on commit ad35dde

Please sign in to comment.