mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
- Added two-factor authentication support in the login process, including handling for two-factor tokens and available methods. - Enhanced the login page to manage two-factor verification and recovery codes. - Introduced a security tab in the user profile for managing two-factor authentication settings, including enabling/disabling authenticator and email methods. - Implemented backend services for managing two-factor authentication, including enabling/disabling methods and regenerating recovery codes. - Added admin functionality to disable two-factor authentication for users. - Updated UI components to reflect changes in two-factor authentication status and provide user feedback. - Configured SMTP settings for email notifications related to two-factor authentication.
20 lines
802 B
C#
20 lines
802 B
C#
namespace Marechai.Email;
|
|
|
|
/// <summary>
|
|
/// Renders an embedded Razor (<c>.cshtml</c>) template with a strongly-typed model and returns the resulting
|
|
/// HTML string. Templates are looked up by file name (without extension) under
|
|
/// <c>Marechai.Email/Templates/</c>.
|
|
/// </summary>
|
|
public interface IEmailTemplateRenderer
|
|
{
|
|
/// <summary>
|
|
/// Renders the template identified by <paramref name="templateKey" /> with <paramref name="model" /> and
|
|
/// returns the produced HTML.
|
|
/// </summary>
|
|
/// <param name="templateKey">
|
|
/// File name of the template under <c>Templates/</c> (without the <c>.cshtml</c> extension), e.g.
|
|
/// <c>"TwoFactorCodeEmail"</c>.
|
|
/// </param>
|
|
Task<string> RenderAsync<TModel>(string templateKey, TModel model);
|
|
}
|