From 90eca260fd72066134c0469089aa850d2624dc88 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sat, 13 Jun 2020 23:39:10 +0000 Subject: [PATCH] --- .vscode/launch.json | 2 +- server/AyaNova/Controllers/NotifyController.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 47a5435c..875d1f02 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -42,7 +42,7 @@ "AYANOVA_JWT_SECRET": "UNLICENSED5G*QQJ8#bQ7$Xr_@sXfHq4", "AYANOVA_LOG_LEVEL": "Info", //"AYANOVA_LOG_LEVEL": "Debug", - "AYANOVA_DEFAULT_TRANSLATION": "en", + "AYANOVA_DEFAULT_TRANSLATION": "de", //TRANSLATION MUST BE en for Integration TESTING "AYANOVA_PERMANENTLY_ERASE_DATABASE": "true", "AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;", diff --git a/server/AyaNova/Controllers/NotifyController.cs b/server/AyaNova/Controllers/NotifyController.cs index 9e729bc5..f0fe394c 100644 --- a/server/AyaNova/Controllers/NotifyController.cs +++ b/server/AyaNova/Controllers/NotifyController.cs @@ -44,10 +44,10 @@ namespace AyaNova.Api.Controllers public ActionResult GetPreLoginPing() { //note: this route is called by the client to determine if it should display trial login ui - //and to 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.TrialLicense)); + //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)); }