aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Http/User.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-23 20:41:19 +0800
committer杨宇千 <crupest@outlook.com>2019-10-23 20:41:19 +0800
commitb67a26248d5dde4c3909c29b92b8a182248bdcc1 (patch)
treeb005aa3d8bc34d8e710ce7fae30236c62dcbe712 /Timeline/Models/Http/User.cs
parent9c9762b4ecbd816be98ee0dd606fe15cc253b415 (diff)
downloadtimeline-b67a26248d5dde4c3909c29b92b8a182248bdcc1.tar.gz
timeline-b67a26248d5dde4c3909c29b92b8a182248bdcc1.tar.bz2
timeline-b67a26248d5dde4c3909c29b92b8a182248bdcc1.zip
...
Diffstat (limited to 'Timeline/Models/Http/User.cs')
-rw-r--r--Timeline/Models/Http/User.cs4
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!;
}