fix intro UI not showing secret key after registration, fix file system watchers not starting automatically initially
This commit is contained in:
@@ -18,14 +18,18 @@ namespace MareSynchronos.WebAPI
|
||||
await CreateConnections();
|
||||
}
|
||||
|
||||
public async Task Register()
|
||||
public async Task Register(bool isIntroUi = false)
|
||||
{
|
||||
if (!ServerAlive) return;
|
||||
Logger.Debug("Registering at service " + ApiUri);
|
||||
var response = await _userHub!.InvokeAsync<string>(UserHubAPI.InvokeRegister);
|
||||
_pluginConfiguration.ClientSecret[ApiUri] = response;
|
||||
_pluginConfiguration.Save();
|
||||
RegisterFinalized?.Invoke();
|
||||
if (!isIntroUi)
|
||||
{
|
||||
RegisterFinalized?.Invoke();
|
||||
}
|
||||
|
||||
await CreateConnections();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user