| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Input; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Intent to be sent a password reset link (UC-12, FR-PR-01). <see cref="ScopeId" /> selects |
| | | 7 | | /// which lookup applies, exactly as it does for <see cref="LoginCommand" />: present, the person |
| | | 8 | | /// is sought among the <c>User</c>s of that scope, whose emails are only unique within it; |
| | | 9 | | /// absent, among the <c>ScopeAdmin</c>s and <c>SystemAdmin</c>s, whose emails are unique |
| | | 10 | | /// system-wide. |
| | | 11 | | /// </summary> |
| | | 12 | | public class PasswordRecoveryCommand : BaseCommand |
| | | 13 | | { |
| | | 14 | | /// <summary>The email to send the reset link to.</summary> |
| | 230 | 15 | | public string Email { get; set; } = string.Empty; |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// The <c>PublicId</c> of the scope the person belongs to. Supplied by a <c>User</c>, |
| | | 19 | | /// omitted by a <c>ScopeAdmin</c> or <c>SystemAdmin</c>. |
| | | 20 | | /// </summary> |
| | 120 | 21 | | public Guid? ScopeId { get; set; } |
| | | 22 | | } |