This commit is contained in:
@@ -20,6 +20,10 @@ namespace AyaNovaQBI
|
|||||||
private void auth_Load(object sender, EventArgs e)
|
private void auth_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
edServerUrl.Text = Properties.Settings.Default.serverurl;
|
edServerUrl.Text = Properties.Settings.Default.serverurl;
|
||||||
|
#if (DEBUG)
|
||||||
|
edUserName.Text = "qbi";
|
||||||
|
edPassword.Text = "qbi";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void btnTest_Click(object sender, EventArgs e)
|
private async void btnTest_Click(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ namespace AyaNovaQBI
|
|||||||
creds.password = password;
|
creds.password = password;
|
||||||
var requestMessage = new HttpRequestMessage(HttpMethod.Post, ApiBaseUrl + "auth");
|
var requestMessage = new HttpRequestMessage(HttpMethod.Post, ApiBaseUrl + "auth");
|
||||||
requestMessage.Content = new StringContent(creds.ToString(), System.Text.Encoding.UTF8, "application/json");
|
requestMessage.Content = new StringContent(creds.ToString(), System.Text.Encoding.UTF8, "application/json");
|
||||||
HttpResponseMessage response = null;
|
HttpResponseMessage response;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
response = await client.SendAsync(requestMessage);
|
response = await client.SendAsync(requestMessage);
|
||||||
@@ -460,6 +460,9 @@ namespace AyaNovaQBI
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Fetch AyaNova license
|
//Fetch AyaNova license
|
||||||
|
var r=await GetAsync("license");
|
||||||
|
todo: need to be able to check via route if has licensefeature, code is already in license biz object, just need exposed to route for logged in users only under license/has-feature
|
||||||
|
|
||||||
//Check if licensed
|
//Check if licensed
|
||||||
//check if build date is within licensed date (how did I do that automated build date thing?)
|
//check if build date is within licensed date (how did I do that automated build date thing?)
|
||||||
// copy timestamp.cs and the createtimestamp.exe utility from v7 qbi and create build event to run it here and do same thing
|
// copy timestamp.cs and the createtimestamp.exe utility from v7 qbi and create build event to run it here and do same thing
|
||||||
|
|||||||
Reference in New Issue
Block a user