Allow user identity password and lockout configuration to be customized. Included additional environment information in System Info.
This commit is contained in:
@ -18,14 +18,28 @@ namespace Oqtane.Services
|
||||
|
||||
private string Apiurl => CreateApiUrl("System", _siteState.Alias);
|
||||
|
||||
public async Task<Dictionary<string, string>> GetSystemInfoAsync()
|
||||
public async Task<Dictionary<string, object>> GetSystemInfoAsync()
|
||||
{
|
||||
return await GetJsonAsync<Dictionary<string, string>>(Apiurl);
|
||||
return await GetSystemInfoAsync("configuration");
|
||||
}
|
||||
|
||||
public async Task UpdateSystemInfoAsync(Dictionary<string, string> settings)
|
||||
public async Task<Dictionary<string, object>> GetSystemInfoAsync(string type)
|
||||
{
|
||||
return await GetJsonAsync<Dictionary<string, object>>($"{Apiurl}?type={type}");
|
||||
}
|
||||
|
||||
public async Task<object> GetSystemInfoAsync(string settingKey, object defaultValue)
|
||||
{
|
||||
return await GetJsonAsync<object>($"{Apiurl}/{settingKey}/{defaultValue}");
|
||||
}
|
||||
|
||||
public async Task UpdateSystemInfoAsync(Dictionary<string, object> settings)
|
||||
{
|
||||
await PostJsonAsync(Apiurl, settings);
|
||||
}
|
||||
public async Task UpdateSystemInfoAsync(string settingKey, object settingValue)
|
||||
{
|
||||
await PutJsonAsync($"{Apiurl}/{settingKey}/{settingValue}", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user