1
0
mirror of https://github.com/Yubico/yubiadmin.git synced 2025-02-26 23:54:26 +01:00

Added user delete setting to YubiAuth.

This commit is contained in:
Dain Nilsson 2013-06-04 16:57:05 +02:00
parent 705077b782
commit b0370680fd

View File

@ -71,7 +71,9 @@ auth_config = FileConfig(
('hsm_device', python_handler('YHSM_DEVICE', 'yhsm://localhost:5348')), ('hsm_device', python_handler('YHSM_DEVICE', 'yhsm://localhost:5348')),
('db_config', python_handler('DATABASE_CONFIGURATION', ('db_config', python_handler('DATABASE_CONFIGURATION',
'sqlite:///:memory:')), 'sqlite:///:memory:')),
('user_registration', python_handler('ENABLE_USER_REGISTRATION', True)) ('user_registration', python_handler('ENABLE_USER_REGISTRATION',
True)),
('user_deletion', python_handler('ALLOW_USER_DELETE', False)),
] ]
) )
@ -109,6 +111,13 @@ class SecurityForm(ConfigForm):
Allow users to register themselves using the YubiAuth client interface. Allow users to register themselves using the YubiAuth client interface.
""" """
) )
user_deletion = BooleanField(
'Enable User Deletion',
description="""
Allow users to delete their own account using the YubiAuth client
interface.
"""
)
security_level = SelectField( security_level = SelectField(
'Security Level', 'Security Level',
coerce=int, coerce=int,