From d8c87f25d83a4e6a9ddda1ba668c0356e93accf1 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 13 Mar 2026 10:31:12 +0100 Subject: [PATCH] Add Login model with username, password, and domain fields Introduced a Login class in the FakeNTLMServer.Model namespace to represent user credentials. The model includes required Username and Password properties, supporting various username formats, and an optional Domain property that defaults to the local machine if not specified. --- Model/Login.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Model/Login.cs diff --git a/Model/Login.cs b/Model/Login.cs new file mode 100644 index 0000000..600ab56 --- /dev/null +++ b/Model/Login.cs @@ -0,0 +1,23 @@ +using System.ComponentModel.DataAnnotations; + +namespace FakeNTLMServer.Model; + +public class Login +{ + /// + /// Username. Supports formats: "username", "DOMAIN\username", "username@domain" + /// + [Required] + public string Username { get; set; } = default!; + + /// + /// Password + /// + [Required] + public string Password { get; set; } = default!; + + /// + /// Domain (optional). Defaults to local machine ("."). Ignored if domain is included in Username. + /// + public string? Domain { get; set; } +} \ No newline at end of file