Require subject and validate contact form fields before submit
Deploy Staging / deploy (push) Successful in 1m11s

This commit is contained in:
Francesco Lorenzo D'Amico
2026-08-21 15:32:54 +02:00
parent f563979545
commit 863a57595e
4 changed files with 79 additions and 18 deletions
+2 -1
View File
@@ -22,8 +22,9 @@ public class ContactMessage
public string? Phone { get; set; }
[Display(Name = "Betreff")]
[Required]
[StringLength(150)]
public string? Subject { get; set; }
public string Subject { get; set; } = string.Empty;
[Display(Name = "Nachricht")]
[Required]