...
IAccountRecoveryManager
Syntax
_accountRecoveryManagerAccountRecoveryManager.Register( UserRegistrationContext registrationContext )
...
string
- Account recovery code
Example
Code Block | ||
---|---|---|
| ||
using MTOA.BLL.Interfaces; var gcKey = GCKeyProvider.GetKey(Request); try { await _accountRecoveryManager.InitiateRecovery(AccountRecoveryEmailTemplateName, gcKey, Utility.IsEnglish(), ReturnUrl); } catch (Exception ex) { _logger.Error(ex, $"Error sending recovery email to: {userRegistrationViewModel.AccountRecoveryEmail}"); throw; } |
...