Pass default username with fallback to "Player" in NameChange script
This commit is contained in:
parent
cdcff1b022
commit
abd8c4cfd1
5 changed files with 11 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace LANCommander.Launcher.Data.Models;
|
||||
|
||||
|
|
@ -9,4 +10,8 @@ public class User : BaseModel
|
|||
public string? Alias { get; set; }
|
||||
public Media? Avatar { get; set; }
|
||||
public Library? Library { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
[NotMapped]
|
||||
public string? GetUserNameSafe => Alias ?? UserName;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue