Menu

Commit [r9842]  Maximize  Restore  History

Rework the shutdown/reboot logic a little bit.

Since the introduction of the passwordless login for a fresh install,
people have been able to reboot/shutdown machines by realoding the page.
For fix this issue let's grant a one-time reboot/shutdown license using
sessions through the confirmation dialog.
While I'm here letschange it to try reach the httpd every 3 seconds after
reboot/shutdown and if that goes well redirect to '/'.

zippybr 2012-01-27

changed /trunk/gui/freeadmin/navtree.py
changed /trunk/gui/freeadmin/static/lib/js/freeadmin.js
changed /trunk/gui/system/urls.py
changed /trunk/gui/system/views.py
changed /trunk/gui/templates/freeadmin/index.html
changed /trunk/gui/templates/system/reboot.html
added /trunk/gui/templates/system/reboot_dialog.html
changed /trunk/gui/templates/system/shutdown.html
added /trunk/gui/templates/system/shutdown_dialog.html
/trunk/gui/freeadmin/navtree.py Diff Switch to side-by-side view
Loading...
/trunk/gui/freeadmin/static/lib/js/freeadmin.js Diff Switch to side-by-side view
Loading...
/trunk/gui/system/urls.py Diff Switch to side-by-side view
Loading...
/trunk/gui/system/views.py Diff Switch to side-by-side view
Loading...
/trunk/gui/templates/freeadmin/index.html Diff Switch to side-by-side view
Loading...
/trunk/gui/templates/system/reboot.html Diff Switch to side-by-side view
Loading...
/trunk/gui/templates/system/reboot_dialog.html Diff Switch to side-by-side view
Loading...
/trunk/gui/templates/system/shutdown.html Diff Switch to side-by-side view
Loading...
/trunk/gui/templates/system/shutdown_dialog.html Diff Switch to side-by-side view
Loading...