mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
ApiKey can be encrypted via CLI
This commit is contained in:
parent
8106990707
commit
cfa5717df3
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user