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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user