support default feature restrictions after user registration

This commit is contained in:
MaysWind
2024-11-10 15:24:09 +08:00
parent 1f159bf826
commit 34b0b793ba
14 changed files with 275 additions and 195 deletions
+15
View File
@@ -217,6 +217,21 @@ avatar_provider = internal
# For "internal" avatar provider only, maximum allowed user avatar file size (1 - 4294967295 bytes)
max_user_avatar_size = 1048576
# The default feature restrictions after user registration (feature types separated by commas), leave blank for no restrictions
# Supports the following feature types:
# 1: Update Password
# 2: Update Email
# 3: Update Profile Basic Info
# 4: Update Avatar
# 5: Logout Other Session
# 6: Enable Two-Factor Authentication
# 7: Disable Enable Two-Factor Authentication
# 8: Forget Password
# 9: Import Transactions
# 10: Export Transactions
# 11: Clear All Data
default_feature_restrictions =
[data]
# Set to true to allow users to export their data
enable_export = true