user dtos as strict object templates
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
|
||||
public class RegisterDto {
|
||||
|
||||
public string Username { get; set; } = "";
|
||||
public string Email { get; set; } = "";
|
||||
public string Password { get; set; } = "";
|
||||
|
||||
}
|
||||
|
||||
public class LoginDto {
|
||||
|
||||
public string Username { get; set; } = "";
|
||||
public string Password { get; set; } = "";
|
||||
|
||||
}
|
||||
@@ -7,7 +7,7 @@ public class User {
|
||||
public string Name { get; set; } = "";
|
||||
public string Email { get; set; } = "";
|
||||
public string PasswordHash { get; set; } = "";
|
||||
public string Role { get; set; }
|
||||
public string Role { get; set; } = "";
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user