mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-27 15:54:16 +00:00
Working on authentication editor data saving workflow.
This commit is contained in:
@@ -1829,11 +1829,20 @@ def setting_authentication():
|
||||
result=result)
|
||||
|
||||
|
||||
@admin_bp.route('/setting/authentication/api', methods=['GET', 'POST'])
|
||||
@admin_bp.route('/setting/authentication/api', methods=['POST'])
|
||||
@login_required
|
||||
@admin_role_required
|
||||
def setting_authentication_api():
|
||||
return Setting().get_group('authentication')
|
||||
result = {'status': 1, 'messages': [], 'data': {}}
|
||||
|
||||
if request.form.get('commit') == '1':
|
||||
result['messages'].append('Saved successfully.')
|
||||
else:
|
||||
result['messages'].append('Loaded successfully.')
|
||||
|
||||
result['data'] = Setting().get_group('authentication')
|
||||
|
||||
return result
|
||||
|
||||
|
||||
@admin_bp.route('/templates', methods=['GET', 'POST'])
|
||||
|
Reference in New Issue
Block a user