fix: Setup script UX and auth issues for rc.2
Fixes two issues found in v4.24.0-rc.1: 1. Setup script menu now uses numbered options [1/2/3] instead of [I/r/c] for better UX (maintains backward compatibility) 2. Temperature verification endpoint now requires authentication (wraps HandleVerifyTemperatureSSH with RequireAuth middleware) These fixes address user feedback and prepare for v4.24.0-rc.2.
This commit is contained in:
parent
3fd37796c5
commit
b931e1e126
2 changed files with 8 additions and 8 deletions
|
|
@ -3003,11 +3003,11 @@ fi
|
|||
echo ""
|
||||
echo "What would you like to do?"
|
||||
echo ""
|
||||
echo " [I] Install/Configure - Set up Pulse monitoring"
|
||||
echo " [R] Remove All - Uninstall everything Pulse has configured"
|
||||
echo " [C] Cancel - Exit without changes"
|
||||
echo " [1] Install/Configure - Set up Pulse monitoring"
|
||||
echo " [2] Remove All - Uninstall everything Pulse has configured"
|
||||
echo " [3] Cancel - Exit without changes"
|
||||
echo ""
|
||||
echo -n "Your choice [I/r/c]: "
|
||||
echo -n "Your choice [1/2/3]: "
|
||||
|
||||
MAIN_ACTION=""
|
||||
if [ -t 0 ]; then
|
||||
|
|
@ -3017,20 +3017,20 @@ else
|
|||
:
|
||||
else
|
||||
echo "(No terminal available - defaulting to Install)"
|
||||
MAIN_ACTION="I"
|
||||
MAIN_ACTION="1"
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
# Handle Cancel
|
||||
if [[ $MAIN_ACTION =~ ^[Cc]$ ]]; then
|
||||
if [[ $MAIN_ACTION =~ ^[3Cc]$ ]]; then
|
||||
echo "Cancelled. No changes made."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Handle Remove All
|
||||
if [[ $MAIN_ACTION =~ ^[Rr]$ ]]; then
|
||||
if [[ $MAIN_ACTION =~ ^[2Rr]$ ]]; then
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "🗑️ Complete Removal"
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
|
|
|
|||
|
|
@ -836,7 +836,7 @@ func (r *Router) setupRoutes() {
|
|||
r.systemSettingsHandler = NewSystemSettingsHandler(r.config, r.persistence, r.wsHub, r.monitor, r.reloadSystemSettings)
|
||||
r.mux.HandleFunc("/api/system/settings", r.systemSettingsHandler.HandleGetSystemSettings)
|
||||
r.mux.HandleFunc("/api/system/settings/update", r.systemSettingsHandler.HandleUpdateSystemSettings)
|
||||
r.mux.HandleFunc("/api/system/verify-temperature-ssh", r.configHandlers.HandleVerifyTemperatureSSH)
|
||||
r.mux.HandleFunc("/api/system/verify-temperature-ssh", RequireAuth(r.config, r.configHandlers.HandleVerifyTemperatureSSH))
|
||||
// Old API token endpoints removed - now using /api/security/regenerate-token
|
||||
|
||||
// Docker agent download endpoints
|
||||
|
|
|
|||
Loading…
Reference in a new issue