Development
This commit is contained in:
parent
db837af548
commit
64f83d683e
8 changed files with 237 additions and 26 deletions
|
|
@ -59,10 +59,10 @@ def options_save():
|
|||
@auth.require_level('administrator')
|
||||
def auth_mode_save():
|
||||
auth_mode = request.form.get('auth_mode', 'mab')
|
||||
if auth_mode not in ('mab', 'eap_password', 'eap_credential'):
|
||||
if auth_mode not in ('mab', 'eap_password', 'eap_certificate'):
|
||||
flash('Invalid authentication mode.', 'error')
|
||||
return redirect(f'/{_PAGE}')
|
||||
if auth_mode in ('eap_password', 'eap_credential') and not PRO_LICENSE:
|
||||
if auth_mode in ('eap_password', 'eap_certificate') and not PRO_LICENSE:
|
||||
flash('This authentication mode requires a Routlin Pro license.', 'error')
|
||||
return redirect(f'/{_PAGE}')
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ def auth_mode_save():
|
|||
after['default_session_seconds'] = dur_n * mult if dur_n > 0 else 0
|
||||
except (ValueError, TypeError):
|
||||
after['default_session_seconds'] = 0
|
||||
elif auth_mode == 'eap_credential':
|
||||
elif auth_mode == 'eap_certificate':
|
||||
after['include_length'] = include_length
|
||||
after['mab_first'] = mab_first
|
||||
after.pop('eap_protocol', None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue