development
Thiemann96 5 years ago
parent 6d7c9bdece
commit 77a981cac8

@ -19,11 +19,11 @@
<ion-card-content>
<ion-item>
<ion-label>SSID</ion-label>
<ion-input [(ngModel)]="ssid" placeholder="GIATSCHOOL-NET"></ion-input>
<ion-input [(ngModel)]="ssid" ></ion-input>
</ion-item>
<ion-item>
<ion-label>{{'Password'|translate}}</ion-label>
<ion-input [(ngModel)]="pw" placeholder="********"></ion-input>
<ion-input [(ngModel)]="pw" ></ion-input>
</ion-item>
</ion-card-content>
</ion-card>

@ -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() {

@ -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){

Loading…
Cancel
Save