Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aaron 58 posts 406 karma points MVP 2x c-trib
    Aug 24, 2022 @ 13:31
    Aaron
    0

    Two Factor Recovery Codes

    This isn't touched on in the two factor documentation, how do we go about generating the recovery codes?

    In dotnet identity we should be able to do the following:

    private readonly UserManager<MemberIdentityUser> _userManager;
    
    var codes = await _userManager.GenerateNewTwoFactorRecoveryCodesAsync(member, 6);
    TempData["RecoveryCodes"] = codes;
    

    This would allow them to be shown one time on the confirmation page.

    However for the life of me, I cannot figure out how to get Umbraco to do this with members.

Please Sign in or register to post replies

Write your reply to:

Draft