Permalink
Browse files

Step 17.8: Remove the login test code

  • Loading branch information...
darkbasic committed Jun 9, 2017
1 parent dbf7f00 commit 38a0b007dbcb649f6287d3a74814bae0dcd44235
Showing with 0 additions and 21 deletions.
  1. +0 −6 src/pages/login/login.html
  2. +0 −15 src/pages/login/login.ts
@@ -22,10 +22,4 @@
<ion-item>
<ion-input [(ngModel)]="phone" (keypress)="onInputKeypress($event)" type="tel" placeholder="Your phone number"></ion-input>
</ion-item>
<ion-item>
<ion-buttons>
<button ion-button (click)="loginFacebook()">Login with Facebook</button>
</ion-buttons>
</ion-item>
</ion-content>
View
@@ -50,21 +50,6 @@ export class LoginPage implements AfterContentInit {
alert.present();
}
loginFacebook(): void {
const options = {
requestPermissions: ['public_profile', 'user_friends', 'email']
};
(<any>Meteor).loginWithFacebook(options, (error: Error) => {
if (error) {
this.handleError(error);
} else {
console.log("Logged in with Facebook succesfully.");
console.log(Meteor.user());
}
});
}
handleLogin(alert: Alert): void {
alert.dismiss().then(() => {
return this.phoneService.verify(this.phone);

0 comments on commit 38a0b00

Please sign in to comment.