This commit is contained in:
@@ -41,13 +41,13 @@ namespace AyaNova.Api.Controllers
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("hello")]
|
||||
public ActionResult GetPreLoginPing()
|
||||
public async Task<IActionResult> GetPreLoginPing()
|
||||
{
|
||||
//note: this route is called by the client to determine if it should display trial login ui
|
||||
//offer a language selection up front and or see if the server is contactable
|
||||
// if (serverState.IsClosed)
|
||||
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
return Ok(ApiOkResponse.Response(AyaNova.Core.License.ActiveKey.Status));
|
||||
bool showSampleLogins = false;
|
||||
if (AyaNova.Core.License.ActiveKey.Status == AyaNova.Core.License.AyaNovaLicenseKey.LicenseStatus.ActiveTrial)
|
||||
showSampleLogins = await AyaNova.Util.DbUtil.DBHasTrialUsersAsync(ct, log);
|
||||
|
||||
return Ok(ApiOkResponse.Response(showSampleLogins));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user