Skip to content

Commit

Permalink
Username and email are no longer nullable. Thanks for the tip, Reacher!
Browse files Browse the repository at this point in the history
  • Loading branch information
Atulin committed Jan 12, 2024
1 parent 9a957e0 commit e5cfdd8
Show file tree
Hide file tree
Showing 4 changed files with 2,361 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Ogma3/Data/Users/OgmaUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,28 @@ namespace Ogma3.Data.Users;

public class OgmaUser : IdentityUser<long>, IReportableContent
{
// IdentityUser overrides
public new string UserName {
get => base.UserName ?? "";
set => base.UserName = value;
}
public new string NormalizedUserName
{
get => base.NormalizedUserName ?? "";
set => base.NormalizedUserName = value;
}
public new string Email
{
get => base.Email ?? "";
set => base.Email = value;
}
public new string NormalizedEmail
{
get => base.NormalizedEmail ?? "";
set => base.NormalizedEmail = value;
}

// New properties
[PersonalData] public string? Title { get; set; }

[PersonalData] public string? Bio { get; set; }
Expand Down
Loading

0 comments on commit e5cfdd8

Please sign in to comment.