Development

This commit is contained in:
Matthew Grotke 2026-05-30 16:39:12 -04:00
parent f81acce23a
commit fcdaf09477
2 changed files with 7 additions and 3 deletions

View file

@ -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}')