CanonicalLtd / UCWifiConnect

The code of this project has been moved to https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/wifi-connect
GNU General Public License v3.0
2 stars 2 forks source link

web pages password protected and operational page #42

Closed knitzsche closed 7 years ago

knitzsche commented 7 years ago

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.

rmescandon commented 7 years ago

LGTM. Please land it and tomorrow morning I'll join to current lp master branch