Add 2FA actions to ASF API

This commit is contained in:
JustArchi
2019-01-23 17:58:37 +01:00
parent 8bea23ec8f
commit c594da5acb
8 changed files with 179 additions and 74 deletions

View File

@@ -82,9 +82,9 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
[HttpPost("Exit")]
[ProducesResponseType(typeof(GenericResponse), 200)]
public ActionResult<GenericResponse> ExitPost() {
(bool success, string output) = Actions.Exit();
(bool success, string message) = Actions.Exit();
return Ok(new GenericResponse(success, output));
return Ok(new GenericResponse(success, message));
}
/// <summary>
@@ -93,9 +93,9 @@ namespace ArchiSteamFarm.IPC.Controllers.Api {
[HttpPost("Restart")]
[ProducesResponseType(typeof(GenericResponse), 200)]
public ActionResult<GenericResponse> RestartPost() {
(bool success, string output) = Actions.Restart();
(bool success, string message) = Actions.Restart();
return Ok(new GenericResponse(success, output));
return Ok(new GenericResponse(success, message));
}
/// <summary>