Updated the Login code so it responds with a set-cookie header for the session token. Still looking into if this is the right thing to do however.

This commit is contained in:
2021-01-03 02:36:36 -06:00
parent e8454fb652
commit 26ea8e8cbc
28 changed files with 31 additions and 7037 deletions
@@ -33,15 +33,6 @@ namespace SecureCore.Controllers
{
return Ok(DataService.GetById(id));
}
//[HttpPost("login")]
//[AcceptVerbs("POST")]
//public IActionResult Login(LoginInfo info)
//{
// var (Hash, Salt) = Auth.HashPassword(info.Password);
// return Ok($"Session Key: {Auth.CreateSessionId()}{Environment.NewLine}Password Hash: {Hash}{Environment.NewLine}Salt: {Salt}{Environment.NewLine}");
//}
}
public class AuthenticatedUser