Skip to content

Commit

Permalink
Removed console.logs of access tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
augustinecyr committed Apr 24, 2023
1 parent a7a7e89 commit 39c4f88
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions frontend/src/app/components/contact.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export class ContactComponent implements OnInit {
}
const contact = this.form.value as Contact;
contact.attachment = this.attachment.nativeElement.files[0];
console.log('assembling the form.....');
console.info('form: ', contact);
console.log('Contact Form: ', contact);

this.postSvc
.postContact(contact)
Expand All @@ -49,7 +48,6 @@ export class ContactComponent implements OnInit {
.catch((error) => {
console.error('error: ', error);
});
console.info('form sent to backend');
this.snackBar.open(
'Thank you for contacting us, please check your email!',
'X',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/components/githuboauth2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class GithubOauth2Component implements OnInit {
this.userService.getGithubToken(this.code).subscribe((response) => {
console.log('Response:', response);
this.accessToken = response.access_token;
console.log('Access token:', this.accessToken);
// console.log('Access token:', this.accessToken);
// post the token using getUser
this.userService.getGithubUser(this.accessToken).subscribe((user) => {
console.log('User:', user);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/components/googleoauth2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Googleoauth2Component implements OnInit {
.subscribe((response) => {
console.log('Response:', response);
this.googleToken = response.access_token;
console.log('Access token:', this.googleToken);
// console.log('Access token:', this.googleToken);
// post the token using getGoogleToken
this.userService
.getGoogleUser(this.googleToken)
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/components/stats.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export class StatsComponent implements OnInit {
}

getStats(id: string) {
console.log('getting stats for this player', id);
console.log('Player selected:', id);
this.stats = this.statService.getStats(id);
this.stats.subscribe((response) => console.log('Stats:', response));
}

deletePlayerById(id: string) {
console.log('Removing player by ID');
console.log('Removing selected player by ID');
this.playerSQL = this.statService.deletePlayerById(id);
this.statService.deletePlayerById(id).subscribe(
() => {
Expand Down

1 comment on commit 39c4f88

@vercel
Copy link

@vercel vercel bot commented on 39c4f88 Apr 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.