diff options
Diffstat (limited to 'Timeline/Models/Http/User.cs')
-rw-r--r-- | Timeline/Models/Http/User.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Timeline/Models/Http/User.cs b/Timeline/Models/Http/User.cs index 98406fec..516c1329 100644 --- a/Timeline/Models/Http/User.cs +++ b/Timeline/Models/Http/User.cs @@ -20,9 +20,11 @@ namespace Timeline.Models.Http public class ChangeUsernameRequest
{
[Required]
+ [Username]
public string OldUsername { get; set; } = default!;
- [Required, ValidateWith(typeof(UsernameValidator))]
+ [Required]
+ [Username]
public string NewUsername { get; set; } = default!;
}
|