From bc619c62cb20d863846aa160065e010311ad3d87 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 27 Sep 2024 02:40:39 +0200 Subject: [PATCH] Updating auth in DatBased submodule --- DotBased | 2 +- DotBased.Identity/Class1.cs | 5 +++++ DotBased.Identity/DotBased.Identity.csproj | 9 +++++++++ SharpRSS.Blazor/Program.cs | 6 +++--- SharpRSS.Blazor/SRSS.db-shm | Bin 32768 -> 0 bytes SharpRSS.Blazor/SRSS.db-wal | 0 6 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 DotBased.Identity/Class1.cs create mode 100644 DotBased.Identity/DotBased.Identity.csproj delete mode 100644 SharpRSS.Blazor/SRSS.db-shm delete mode 100644 SharpRSS.Blazor/SRSS.db-wal diff --git a/DotBased b/DotBased index c092b8a..0fed89e 160000 --- a/DotBased +++ b/DotBased @@ -1 +1 @@ -Subproject commit c092b8a679c218c845e4981deb7b5b5dd174a311 +Subproject commit 0fed89e140c1500495e01f1f836416f107dcdbce diff --git a/DotBased.Identity/Class1.cs b/DotBased.Identity/Class1.cs new file mode 100644 index 0000000..0600fc3 --- /dev/null +++ b/DotBased.Identity/Class1.cs @@ -0,0 +1,5 @@ +namespace DotBased.Identity; + +public class Class1 +{ +} \ No newline at end of file diff --git a/DotBased.Identity/DotBased.Identity.csproj b/DotBased.Identity/DotBased.Identity.csproj new file mode 100644 index 0000000..3a63532 --- /dev/null +++ b/DotBased.Identity/DotBased.Identity.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + diff --git a/SharpRSS.Blazor/Program.cs b/SharpRSS.Blazor/Program.cs index ba68c42..f9dd1d9 100644 --- a/SharpRSS.Blazor/Program.cs +++ b/SharpRSS.Blazor/Program.cs @@ -23,10 +23,10 @@ builder.Services.AddBasedServerAuth(options => options.LogoutPath = "/auth/logout"; options.SeedData = service => { - service.CreateUserAsync(new UserModel() { UserName = "Admin", Email = "admin@example.com", Enabled = true, PasswordHash = "password", Roles = new List() { new RoleModel() { Name = "Admin", Description = "Administration role." }}}); - service.CreateUserAsync(new UserModel() { UserName = "User", Email = "user@example.com", Enabled = true, PasswordHash = "password"}); + /*service.CreateUserAsync(new UserModel() { UserName = "Admin", Email = "admin@example.com", Enabled = true, PasswordHash = "password", Roles = new List() { new RoleModel() { Name = "Admin", Description = "Administration role." }}}); + service.CreateUserAsync(new UserModel() { UserName = "User", Email = "user@example.com", Enabled = true, PasswordHash = "password"});*/ }; - options.SetDataProviderType(); + options.SetDataRepositoryType(); options.SetSessionStateProviderType(); }); diff --git a/SharpRSS.Blazor/SRSS.db-shm b/SharpRSS.Blazor/SRSS.db-shm deleted file mode 100644 index fe9ac2845eca6fe6da8a63cd096d9cf9e24ece10..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32768 zcmeIuAr62r3