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:
parent
705077b782
commit
b0370680fd
@ -71,7 +71,9 @@ auth_config = FileConfig(
|
||||
('hsm_device', python_handler('YHSM_DEVICE', 'yhsm://localhost:5348')),
|
||||
('db_config', python_handler('DATABASE_CONFIGURATION',
|
||||
'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.
|
||||
"""
|
||||
)
|
||||
user_deletion = BooleanField(
|
||||
'Enable User Deletion',
|
||||
description="""
|
||||
Allow users to delete their own account using the YubiAuth client
|
||||
interface.
|
||||
"""
|
||||
)
|
||||
security_level = SelectField(
|
||||
'Security Level',
|
||||
coerce=int,
|
||||
|
Loading…
x
Reference in New Issue
Block a user