mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-31 21:20:52 +08:00
feat(auth): add user information update feature and refactor the authentication service.
This commit is contained in:
17
Models/Request/Auth/UpdateUserRequest.cs
Normal file
17
Models/Request/Auth/UpdateUserRequest.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Foxel.Models.Request.Auth;
|
||||
|
||||
public class UpdateUserRequest
|
||||
{
|
||||
[StringLength(50)]
|
||||
public string? UserName { get; set; }
|
||||
|
||||
[EmailAddress]
|
||||
public string? Email { get; set; }
|
||||
|
||||
public string? CurrentPassword { get; set; }
|
||||
|
||||
[StringLength(20, MinimumLength = 6)]
|
||||
public string? NewPassword { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user