| | | 1 | | using ArturRios.Mediator.Query; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Query.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// One self-registration awaiting confirmation (UC-49, FR-SR-11): what a scope's owners need to |
| | | 7 | | /// recognise it and decide whether to discard it. |
| | | 8 | | /// </summary> |
| | | 9 | | /// <remarks> |
| | | 10 | | /// Deliberately without the password hash, the salt and the token hash. The name and address are |
| | | 11 | | /// what the owners would see in the scope's user list once the link is followed, and a taken |
| | | 12 | | /// address never produces a pending row, so the listing reveals nothing about existing accounts. |
| | | 13 | | /// </remarks> |
| | | 14 | | public class PendingRegistrationOutput : QueryOutput |
| | | 15 | | { |
| | | 16 | | /// <summary>The registration's public id — what UC-50 discards it by.</summary> |
| | 42 | 17 | | public Guid Id { get; set; } |
| | | 18 | | |
| | | 19 | | /// <summary>The name the registrant gave.</summary> |
| | 60 | 20 | | public string Name { get; set; } = string.Empty; |
| | | 21 | | |
| | | 22 | | /// <summary>The address awaiting confirmation.</summary> |
| | 61 | 23 | | public string Email { get; set; } = string.Empty; |
| | | 24 | | |
| | | 25 | | /// <summary>When the registration was stored.</summary> |
| | 33 | 26 | | public DateTime CreatedAt { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary>When its link stops working.</summary> |
| | 33 | 29 | | public DateTime ExpiresAt { get; set; } |
| | | 30 | | |
| | | 31 | | /// <summary>Wrong passwords the registrant may still try before the registration is discarded (FR-SR-09); never bel |
| | 36 | 32 | | public int AttemptsLeft { get; set; } |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// Whether the link has already expired. Such a row stays until the scheduled purge removes it, |
| | | 36 | | /// so it is listed and may be discarded like any other. |
| | | 37 | | /// </summary> |
| | 35 | 38 | | public bool Expired { get; set; } |
| | | 39 | | } |