mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-01-24 22:07:48 -05:00
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="Config.cs" company="lanedirt">
|
|
// Copyright (c) lanedirt. All rights reserved.
|
|
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
|
|
// </copyright>
|
|
//-----------------------------------------------------------------------
|
|
|
|
namespace AliasVault.Admin;
|
|
|
|
using AliasVault.Shared.Models.Configuration;
|
|
|
|
/// <summary>
|
|
/// Configuration class for the Admin project with values loaded from environment variables.
|
|
/// </summary>
|
|
public class Config : SharedConfig
|
|
{
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public string AdminPasswordHash { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public DateTime LastPasswordChanged { get; set; } = DateTime.MinValue;
|
|
}
|