1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00
Teknik/Utilities/Configuration/UserConfig.cs

40 lines
1.4 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Teknik.Utilities;
namespace Teknik.Configuration
{
public class UserConfig
{
public bool RegistrationEnabled { get; set; }
public bool LoginEnabled { get; set; }
public bool PasswordResetEnabled { get; set; }
2016-05-19 01:52:32 +02:00
public string UsernameFilter { get; set; }
public string UsernameFilterLabel { get; set; }
2016-05-19 01:52:32 +02:00
public int MinUsernameLength { get; set; }
public int MaxUsernameLength { get; set; }
public string ReservedUsernameDefinitionFile { get; set; }
public decimal PremiumAccountPrice { get; set; }
public string PaymentType { get; set; }
public bool InviteCodeRequired { get; set; }
public UserConfig()
{
RegistrationEnabled = true;
LoginEnabled = true;
PasswordResetEnabled = true;
2016-05-19 01:52:32 +02:00
UsernameFilter = "^[a-zA-Z0-9_-]+(?:\\.[a-zA-Z0-9_-]+)*$";
UsernameFilterLabel = "AlphaNumeric Characters with Dashes, Underlines, and 0-1 Periods not in the beginning or end.";
2016-05-19 01:52:32 +02:00
MinUsernameLength = 1;
MaxUsernameLength = 35;
ReservedUsernameDefinitionFile = string.Empty;
PremiumAccountPrice = 0;
PaymentType = "Donation";
InviteCodeRequired = false;
}
}
}