From 1000ec05bc1321de3312f3724d53a02eaa234210 Mon Sep 17 00:00:00 2001 From: SidneyNiccolson Date: Tue, 26 Jun 2018 15:17:44 +0200 Subject: [PATCH] name changes to parameters --- src/server.rs | 10 +++++----- ui/index.html | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/server.rs b/src/server.rs index 471e8945..dcb83815 100644 --- a/src/server.rs +++ b/src/server.rs @@ -201,15 +201,15 @@ fn ssid(req: &mut Request) -> IronResult { } fn connect(req: &mut Request) -> IronResult { - let (ssid, passphrase, API, WS, serial, secret) = { + let (ssid, passphrase, api, ws, serial, secret) = { let params = get_request_ref!(req, Params, "Getting request params failed"); let ssid = get_param!(params, "ssid", String); let passphrase = get_param!(params, "passphrase", String); - let API = get_param!(params, "API", String); - let WS = get_param!(params, "WS", String); + let api = get_param!(params, "API", String); + let ws = get_param!(params, "WS", String); let serial = get_param!(params, "serial", String); let secret = get_param!(params, "secret", String); - (ssid, passphrase, API, WS, serial, secret) + (ssid, passphrase, api, ws, serial, secret) }; // Handle writing files let json_path = Path::new("/data/kit_config.json"); @@ -245,7 +245,7 @@ fn connect(req: &mut Request) -> IronResult { }} }} }} - }}", API, WS, serial, secret); + }}", api, ws, serial, secret); // Write the text string to `file`, returns `io::Result<()>` match file.write_all(output_text.as_bytes()) diff --git a/ui/index.html b/ui/index.html index f0f062b4..52f4fa4a 100644 --- a/ui/index.html +++ b/ui/index.html @@ -63,15 +63,15 @@

Hi! Please choose your wifi from the list.

- +
- +
- +
- +