-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
12 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -192,30 +192,20 @@ private static async Task SeedUsers(IServiceProvider scopedServices) | |
using var userManager = scopedServices.GetRequiredService<UserManager<ApplicationUser>>(); | ||
|
||
// Seed the database with test data. | ||
var user_pass_pairs = new (ApplicationUser user, string pass)[] | ||
const int test_users_count = 4; | ||
for (int i = 1; i <= test_users_count; i++) | ||
{ | ||
( new ApplicationUser | ||
var pair = (user: | ||
new ApplicationUser | ||
{ | ||
UserName = "Playwright1@test.domain.com", | ||
Email = "Playwright1@test.domain.com", | ||
UserName = $"Playwright{i}@test.domain.com", | ||
Email = $"Playwright{i}@test.domain.com", //example email: [email protected] | ||
UserSettingsJSON = "{}", | ||
Name = "Playwright1" | ||
Name = $"Playwright{i}" | ||
}, | ||
"Playwright1!" | ||
), | ||
( new ApplicationUser | ||
{ | ||
UserName = "[email protected]", | ||
Email = "[email protected]", | ||
UserSettingsJSON = "{}", | ||
Name = "Playwright2" | ||
}, | ||
"Playwright2!" | ||
) | ||
}; | ||
|
||
foreach (var pair in user_pass_pairs) | ||
{ | ||
pass: $"Playwright{i}!" //example pass: Playwright1!, Playwright2!... | ||
); | ||
|
||
var existing_usr = await userManager.FindByEmailAsync(pair.user.Email); | ||
if (existing_usr == null) | ||
{ | ||
|
Submodule InkBall
updated
3 files
+1 −5 | src/InkBall.Module/Areas/InkBall/Pages/GamesList.cshtml | |
+12 −93 | src/InkBall.Module/Areas/InkBall/Pages/Home.cshtml | |
+98 −1 | src/InkBall.Module/IBwwwroot/js/inkball.js |