Development
This commit is contained in:
parent
f81acce23a
commit
fcdaf09477
2 changed files with 7 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from pathlib import Path
|
||||
from flask import Blueprint, redirect, flash
|
||||
from auth import require_level
|
||||
from config_utils import queued_msg, CONFIGS_DIR
|
||||
from config_utils import CONFIGS_DIR
|
||||
|
||||
_PAGE = Path(__file__).parent.name
|
||||
|
||||
|
|
@ -18,5 +18,5 @@ def regenerate():
|
|||
except OSError as ex:
|
||||
flash(f'Could not delete .radius-secret: {ex}', 'error')
|
||||
return redirect(f'/{_PAGE}')
|
||||
flash(queued_msg('core apply', action_label='Secret deleted - new secret will be generated on next apply'), 'success')
|
||||
flash('Secret deleted. A new secret will be generated when the pending command is applied.', 'success')
|
||||
return redirect(f'/{_PAGE}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue