diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-08 17:13:14 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-08 17:13:14 +0800 |
commit | 063321c90b8509249e65b49f39cf7d4f375305f6 (patch) | |
tree | cb3d30bbfa8b4c3f34912e687650bfad7a3dc422 /Timeline/Models/Http/User.cs | |
parent | d018e1c318646c6d7fecc8d3824129e9f1d5cf6c (diff) | |
download | timeline-063321c90b8509249e65b49f39cf7d4f375305f6.tar.gz timeline-063321c90b8509249e65b49f39cf7d4f375305f6.tar.bz2 timeline-063321c90b8509249e65b49f39cf7d4f375305f6.zip |
2 things.
1. Make Administrator in UserPutRequest nullable.
2. Remove default route.
Diffstat (limited to 'Timeline/Models/Http/User.cs')
-rw-r--r-- | Timeline/Models/Http/User.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Models/Http/User.cs b/Timeline/Models/Http/User.cs index 3259a448..d45543fb 100644 --- a/Timeline/Models/Http/User.cs +++ b/Timeline/Models/Http/User.cs @@ -7,7 +7,7 @@ namespace Timeline.Models.Http [Required]
public string Password { get; set; }
[Required]
- public bool Administrator { get; set; }
+ public bool? Administrator { get; set; }
}
public class UserPatchRequest
|