mirror of
https://github.com/Yubico/yubiadmin.git
synced 2025-02-27 08:54:15 +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')),
|
('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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user