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:
2021-03-09 22:14:29 -06:00
parent 70bb9dd9e2
commit 7008621799
53 changed files with 157 additions and 4377 deletions
+9
View File
@@ -0,0 +1,9 @@
namespace SecureCore.Models
{
public class LoginInfo
{
public string Username { get; set; }
public string Password { get; set; }
}
}
+10
View File
@@ -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; }
}
}
-18
View File
@@ -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;
}
}
}