forked from siteserver/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cs
More file actions
106 lines (60 loc) · 3.11 KB
/
Config.cs
File metadata and controls
106 lines (60 loc) · 3.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
using System;
using System.Collections.Generic;
using Datory;
using Datory.Annotations;
using SSCMS.Enums;
namespace SSCMS.Models
{
[DataTable("siteserver_Config")]
public class Config : Entity
{
[DataColumn]
public string DatabaseVersion { get; set; }
[DataColumn]
public DateTime UpdateDate { get; set; }
public bool Initialized => Id > 0;
public bool IsSeparatedApi { get; set; }
public string SeparatedApiUrl { get; set; }
public bool IsLogSite { get; set; } = true;
public bool IsLogAdmin { get; set; } = true;
public bool IsLogUser { get; set; } = true;
public bool IsLogError { get; set; } = true;
public bool IsTimeThreshold { get; set; }
public int TimeThreshold { get; set; } = 60;
public int AdminUserNameMinLength { get; set; }
public int AdminPasswordMinLength { get; set; } = 6;
public PasswordRestriction AdminPasswordRestriction { get; set; } = PasswordRestriction.LetterAndDigit;
public bool IsAdminLockLogin { get; set; }
public int AdminLockLoginCount { get; set; } = 3;
public LockType AdminLockLoginType { get; set; } = LockType.Hours;
public int AdminLockLoginHours { get; set; } = 3;
public bool IsAdminEnforcePasswordChange { get; set; }
public int AdminEnforcePasswordChangeDays { get; set; } = 90;
public bool IsAdminEnforceLogout { get; set; }
public int AdminEnforceLogoutMinutes { get; set; } = 960;
public bool IsUserRegistrationAllowed { get; set; } = true;
public List<string> UserRegistrationAttributes { get; set; }
public bool IsUserRegistrationGroup { get; set; }
public bool IsUserRegistrationChecked { get; set; } = true;
public bool IsUserUnRegistrationAllowed { get; set; } = true;
public int UserPasswordMinLength { get; set; } = 6;
public PasswordRestriction UserPasswordRestriction { get; set; } = PasswordRestriction.LetterAndDigit;
public int UserRegistrationMinMinutes { get; set; } = 3;
public bool IsUserLockLogin { get; set; }
public int UserLockLoginCount { get; set; } = 3;
public string UserLockLoginType { get; set; } = "Hours";
public int UserLockLoginHours { get; set; } = 3;
public string UserDefaultGroupAdminName { get; set; }
public string AdminTitle { get; set; } = "SS CMS";
public string AdminLogoUrl { get; set; }
public string AdminWelcomeHtml { get; set; } = @"欢迎使用 SSCMS 管理后台";
public bool IsHomeClosed { get; set; }
public string HomeTitle { get; set; } = "用户中心";
public bool IsHomeLogo { get; set; }
public string HomeLogoUrl { get; set; }
public string HomeDefaultAvatarUrl { get; set; }
public bool IsHomeAgreement { get; set; }
public string HomeAgreementHtml { get; set; } = @"阅读并接受<a href=""/agreement.html"" target=""_blank"">《用户协议》</a>";
public string HomeWelcomeHtml { get; set; } = @"欢迎使用用户中心";
}
}