This commit is contained in:
john 2025-05-15 17:47:20 +02:00
parent 0dc41337da
commit 14fd359ea8
28 changed files with 156 additions and 52 deletions

View file

@ -14,7 +14,7 @@ internal class UserIdentity : Entity
public UserPassword Password { get; private set; }
public ICollection<UserSession> Sessions { get; private set; }
public ICollection<UserSession> Sessions { get; private set; } = [];
private UserIdentity() { }
@ -57,4 +57,4 @@ internal class UserIdentity : Entity
}
}
public class SetPasswordError(string message, Exception inner) : DomainException(message, inner);
public class SetPasswordError(string message, Exception inner) : DomainError(message, inner);