diff options
author | vman <public@vaughnnugent.com> | 2022-12-15 01:41:41 -0500 |
---|---|---|
committer | vman <public@vaughnnugent.com> | 2022-12-15 01:41:41 -0500 |
commit | a5ad943584e91bfbd953dc373a7a313367c7e0ae (patch) | |
tree | 5d5c63f6c04e3e87dec3b8fec3662d39b7b954d0 /VNLib.Plugins.Essentials.Accounts.Registration/src/Endpoints | |
parent | f13193aa928f099c8152653570d2839b46b8f1ee (diff) |
Mfa/login fixes
Diffstat (limited to 'VNLib.Plugins.Essentials.Accounts.Registration/src/Endpoints')
-rw-r--r-- | VNLib.Plugins.Essentials.Accounts.Registration/src/Endpoints/RegistrationEntpoint.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/VNLib.Plugins.Essentials.Accounts.Registration/src/Endpoints/RegistrationEntpoint.cs b/VNLib.Plugins.Essentials.Accounts.Registration/src/Endpoints/RegistrationEntpoint.cs index 1e983cb..b56cb3c 100644 --- a/VNLib.Plugins.Essentials.Accounts.Registration/src/Endpoints/RegistrationEntpoint.cs +++ b/VNLib.Plugins.Essentials.Accounts.Registration/src/Endpoints/RegistrationEntpoint.cs @@ -100,8 +100,9 @@ namespace VNLib.Plugins.Essentials.Accounts.Registration.Endpoints //Begin the async op to get the signature key from the vault RegSignatureKey = plugin.TryGetSecretAsync("reg_sig_key").ContinueWith((ts) => { - _ = ts.Result ?? throw new KeyNotFoundException("Missing required key 'reg_sig_key' in 'registration' configuration"); - return Convert.FromBase64String(ts.Result); + using SecretResult? sr = ts.Result ?? throw new KeyNotFoundException("Missing required key 'reg_sig_key' in 'registration' configuration"); + return ts.Result.GetFromBase64(); + }, TaskScheduler.Default); //Register timeout for cleanup |