Introduce new classes and records in the `EnvelopeGenerator.API.Models` namespace to handle various functionalities: - Add `Auth` record for managing authentication codes. - Introduce `ContactLink` class for hyperlink management. - Add `Culture` and `Cultures` classes for language and culture info. - Implement `CustomImages` class for image management. - Add `EnvelopeReceiverLogin` record for login requests. - Introduce `ErrorViewModel` for error representation. - Add `Image` class for image source and CSS management. - Implement `Login` record for user authentication. - Add `MainViewModel` with a nullable `Title` property. - Introduce PDF annotation classes in `PsPdfKitAnnotation` namespace. - Add `TFARegParams` class for 2FA registration parameters.
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);
|
|
} |