from pritunl.constants import *
from pritunl.settings.group_mongo import SettingsGroupMongo

class SettingsUser(SettingsGroupMongo):
    group = 'user'
    fields = {
        'audit_limit': 2500,
        'gravatar': True,
        'otp_secret_len': 16,
        'pin_mode': PIN_OPTIONAL,
        'pin_min_length': 6,
        'pin_digits_only': True,
        'device_key_override': None,
        'device_key_length': 4,
        'device_reg_attempts': 10,
        'reconnect': True,
        'password_encryption': True,
        'cert_key_bits': 4096,
        'cert_message_digest': 'sha256',
        'cert_expire_days': 10000,
        'page_count': 10,
        'skip_remote_sso_check': False,
        'conf_sync': True,
        'restrict_import': False,
        'restrict_client': False,
    }
