Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

869 B
Raw Blame
//-----------------------------------------------------------------------
// <copyright file="ValidateUsernameRequest.cs" company="aliasvault">
// Copyright (c) aliasvault. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
// </copyright>
//-----------------------------------------------------------------------

namespace AliasVault.Shared.Models.WebApi.V2.Auth;

/// <summary>
/// A request to validate a username.
/// </summary>
public class ValidateUsernameRequest
{
    /// <summary>
    /// Gets the username to validate.
    /// </summary>
    public required string Username { get; init; } = string.Empty;

    /// <summary>
    /// Gets the registration invite code, required when public registration is disabled.
    /// </summary>
    public string? InviteCode { get; init; }
}