Replaced all EnvelopeGenerator.GeneratorAPI namespaces with EnvelopeGenerator.API across controllers, models, extensions, middleware, and annotation-related files. Updated using/import statements and namespace declarations accordingly. Added wwwroot folder to project file. Minor code adjustments made for consistency. This unifies API naming for improved clarity and maintainability.
17 lines
569 B
C#
17 lines
569 B
C#
namespace EnvelopeGenerator.API.Models;
|
|
|
|
/// <summary>
|
|
/// Represents the parameters for two-factor authentication (2FA) registration.
|
|
/// </summary>
|
|
public class TFARegParams
|
|
{
|
|
/// <summary>
|
|
/// The maximum allowed time for completing the registration process.
|
|
/// </summary>
|
|
public TimeSpan TimeLimit { get; init; } = new(0, 30, 0);
|
|
|
|
/// <summary>
|
|
/// The deadline for registration, calculated as the current time plus the <see cref="TimeLimit"/>.
|
|
/// </summary>
|
|
public DateTime Deadline => DateTime.Now.AddTicks(TimeLimit.Ticks);
|
|
} |