ApiKey can be encrypted via CLI

This commit is contained in:
erri120 2020-01-05 14:14:53 +01:00
parent 8106990707
commit cfa5717df3
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -35,6 +35,11 @@ namespace Wabbajack.Lib.Downloaders
public NexusDownloader()
{
if (CLIArguments.ApiKey != null)
{
CLIArguments.ApiKey.ToEcryptedJson("nexusapikey");
}
TriggerLogin = ReactiveCommand.CreateFromTask(
execute: () => Utils.CatchAndLog(NexusApiClient.RequestAndCacheAPIKey),
canExecute: IsLoggedIn.Select(b => !b).ObserveOn(RxApp.MainThreadScheduler));