//-----------------------------------------------------------------------
//
// Copyright (c) lanedirt. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
//
//-----------------------------------------------------------------------
namespace AliasVault.Admin;
using AliasVault.Shared.Models.Configuration;
///
/// Configuration class for the Admin project with values loaded from environment variables.
///
public class Config : SharedConfig
{
///
/// Gets or sets the admin password hash which is generated by install.sh and will be set
/// as the default password for the admin user.
///
public string AdminPasswordHash { get; set; } = string.Empty;
///
/// Gets or sets the last time the password was changed. This is used to check if the
/// password hash generated by install.sh should replace the current password hash if user already exists.
///
public DateTime LastPasswordChanged { get; set; } = DateTime.MinValue;
}