Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

GAVerificationViewComponent.cs

using Microsoft.AspNetCore.Mvc;
using Nop.Plugin.MultiFactorAuth.GoogleAuthenticator.Models;
using Nop.Web.Framework.Components;

namespace Nop.Plugin.MultiFactorAuth.GoogleAuthenticator.Components;

/// 
/// Represents view component for verification GoogleAuthenticator
/// 
public class GAVerificationViewComponent : NopViewComponent
{
    #region Fields

    #endregion

    #region Ctor

    public GAVerificationViewComponent()
    {

    }

    #endregion

    #region Methods

    /// 
    ///  Invoke view component
    /// 
    /// Widget zone name
    /// Additional data
    /// View component result
    public IViewComponentResult Invoke(string widgetZone, object additionalData)
    {
        var model = new TokenModel();
        return View("~/Plugins/MultiFactorAuth.GoogleAuthenticator/Views/Customer/GAVefification.cshtml", model);
    }

    #endregion
}