Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

IAccountRecoveryManager

Syntax

_accountRecoveryManagerAccountRecoveryManager.Register( UserRegistrationContext registrationContext )

...

string - Account recovery code

Example

Code Block
languagec#
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;
}

...