Added code to support password settings. Fixed a bug where the [FromBody] attribute resulted in null object properties, as well as included more null checks.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
namespace SecureCore.Models
|
||||
{
|
||||
public class LoginInfo
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
namespace SecureCore.Models
|
||||
{
|
||||
public class RegistrationInfo
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Email { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
namespace SecureCore.Services
|
||||
{
|
||||
public class UserInformation
|
||||
{
|
||||
public struct LoginData
|
||||
{
|
||||
public string Username;
|
||||
public string Password;
|
||||
}
|
||||
|
||||
public struct RegistrationData
|
||||
{
|
||||
public string Username;
|
||||
public string Password;
|
||||
public string Email;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user