From 77a981cac87aa0e9e571c886c66a180c594db74a Mon Sep 17 00:00:00 2001 From: Thiemann96 Date: Thu, 20 Feb 2020 17:05:09 +0100 Subject: [PATCH] ups --- src/pages/configuration/configuration.html | 4 ++-- src/pages/configuration/configuration.ts | 6 ++---- src/pages/login/login.ts | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/pages/configuration/configuration.html b/src/pages/configuration/configuration.html index 41520b1..e026fee 100644 --- a/src/pages/configuration/configuration.html +++ b/src/pages/configuration/configuration.html @@ -19,11 +19,11 @@ SSID - + {{'Password'|translate}} - + diff --git a/src/pages/configuration/configuration.ts b/src/pages/configuration/configuration.ts index d63ee7e..ecbc2c0 100644 --- a/src/pages/configuration/configuration.ts +++ b/src/pages/configuration/configuration.ts @@ -44,10 +44,8 @@ export class ConfigurationPage { return returnValue; } async uploadStandardSketch() { - const sketch = await this.loginProvider.getUserSketch(this.token,this.box._id,this.ssid,this.pw) - console.log(sketch); - this.navCtrl.push(OtaWizardPage,{sketch}) - + const sketch = await this.loginProvider.getUserSketch(this.token,this.box._id,this.ssid,this.pw) + this.navCtrl.push(OtaWizardPage,{sketch}) } addSensor() { diff --git a/src/pages/login/login.ts b/src/pages/login/login.ts index 3d019cf..586b8c8 100644 --- a/src/pages/login/login.ts +++ b/src/pages/login/login.ts @@ -29,7 +29,7 @@ export class LoginPage { private async submitLogin(form){ try { - this.token = await this.loginProvider.login("e_thie10@uni-muenster.de","Qxpxtexb1") + this.token = await this.loginProvider.login(form.values.email,form.values.password) this.boxes = await this.loginProvider.getUserBoxes(this.token); } catch(err){