Skip to content

Commit 38a0b00

Browse files
committed
Step 17.8: Remove the login test code
1 parent dbf7f00 commit 38a0b00

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

‎src/pages/login/login.html‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,4 @@
2222
<ion-item>
2323
<ion-input [(ngModel)]="phone" (keypress)="onInputKeypress($event)" type="tel" placeholder="Your phone number"></ion-input>
2424
</ion-item>
25-
26-
<ion-item>
27-
<ion-buttons>
28-
<button ion-button (click)="loginFacebook()">Login with Facebook</button>
29-
</ion-buttons>
30-
</ion-item>
3125
</ion-content>

‎src/pages/login/login.ts‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,6 @@ export class LoginPage implements AfterContentInit {
5050
alert.present();
5151
}
5252

53-
loginFacebook(): void {
54-
const options = {
55-
requestPermissions: ['public_profile', 'user_friends', 'email']
56-
};
57-
58-
(<any>Meteor).loginWithFacebook(options, (error: Error) => {
59-
if (error) {
60-
this.handleError(error);
61-
} else {
62-
console.log("Logged in with Facebook succesfully.");
63-
console.log(Meteor.user());
64-
}
65-
});
66-
}
67-
6853
handleLogin(alert: Alert): void {
6954
alert.dismiss().then(() => {
7055
return this.phoneService.verify(this.phone);

0 commit comments

Comments
 (0)