We now require the user to enter a password to use any web page. The password is set by default to wifi-connect when the daemon starts if it is not already set, but we will change the default later to be derived from a device specific term that the user knows, perhaps serial number or mac address. The password is saved as a hash in SNAP_COMMON/hash. You can also set it from the cli with sudo wifi-connect set-hash PASSWORD at any time.
This commit also adds the operational portal page. This displays when the device is connected to external AP. Its only feature now is a "Disconnect from Wifi" button that, when clicked, disconnects, thus causing the daemon to put the device into Management mode. The page needs better design/layout which we can do as follow on work.
Note that the ssids.html page is now named management.html to be consistent with specification terminology, as are all reference to it in code.
We now require the user to enter a password to use any web page. The password is set by default to wifi-connect when the daemon starts if it is not already set, but we will change the default later to be derived from a device specific term that the user knows, perhaps serial number or mac address. The password is saved as a hash in SNAP_COMMON/hash. You can also set it from the cli with sudo wifi-connect set-hash PASSWORD at any time.
This commit also adds the operational portal page. This displays when the device is connected to external AP. Its only feature now is a "Disconnect from Wifi" button that, when clicked, disconnects, thus causing the daemon to put the device into Management mode. The page needs better design/layout which we can do as follow on work.
Note that the ssids.html page is now named management.html to be consistent with specification terminology, as are all reference to it in code.