Polish Round 1 (#2396)
This commit is contained in:
parent
cf2c43d390
commit
02b002d81a
197 changed files with 1233 additions and 1751 deletions
|
@ -665,7 +665,9 @@ public class UserRepository : IUserRepository
|
|||
Username = u.UserName,
|
||||
Email = u.Email,
|
||||
Created = u.Created,
|
||||
CreatedUtc = u.CreatedUtc,
|
||||
LastActive = u.LastActive,
|
||||
LastActiveUtc = u.LastActiveUtc,
|
||||
Roles = u.UserRoles.Select(r => r.Role.Name).ToList(),
|
||||
IsPending = !u.EmailConfirmed,
|
||||
AgeRestriction = new AgeRestrictionDto()
|
||||
|
|
|
@ -120,6 +120,7 @@ public static class Seed
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
public static async Task SeedRoles(RoleManager<AppRole> roleManager)
|
||||
{
|
||||
var roles = typeof(PolicyConstants)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue