Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit fc20a25

Browse files
committed
Add captcha code to secure some entity creation
1 parent 793dd45 commit fc20a25

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@funixproductions/angular-core",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"description": "Package used in all FunixProductions Angular projects",
55
"scripts": {
66
"ng": "ng",

projects/funixproductions-requests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@funixproductions/funixproductions-requests",
3-
"version": "0.3.7",
3+
"version": "0.3.8",
44
"description": "Package used in all FunixProductions Angular projects",
55
"peerDependencies": {
66
"@angular/common": "^18.2.4",

projects/funixproductions-requests/src/lib/services/pacifista-api/web/news/services/PacifistaNewsCommentService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export class PacifistaNewsCommentService extends FunixprodHttpClient {
6464
);
6565
}
6666

67-
public createComment(request: PacifistaNewsCommentDTO): Observable<PacifistaNewsCommentDTO> {
68-
return this.http.post<PacifistaNewsCommentDTO>(this.domain + this.path, request, {headers: this.getHeaders()})
67+
public createComment(request: PacifistaNewsCommentDTO, googleCaptchaCode: string): Observable<PacifistaNewsCommentDTO> {
68+
return this.http.post<PacifistaNewsCommentDTO>(this.domain + this.path, request, {headers: this.getHeaders(googleCaptchaCode)})
6969
.pipe(
7070
catchError((error: HttpErrorResponse) => {
7171
return throwError(() => this.buildErrorDto(error));

projects/funixproductions-requests/src/lib/services/pacifista-api/web/vote/services/VoteService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ export class VoteService extends FunixprodHttpClient {
7575
);
7676
}
7777

78-
public makeVote(voteWebsite: string): Observable<VoteDTO> {
78+
public makeVote(voteWebsite: string, googleRecaptchaCode: string): Observable<VoteDTO> {
7979
return this.http.post<VoteDTO>(this.domain + this.path + "/user/" + voteWebsite, {}, {
80-
headers: super.getHeaders(),
80+
headers: super.getHeaders(googleRecaptchaCode),
8181
}).pipe(
8282
catchError((error: HttpErrorResponse) => {
8383
return throwError(() => this.buildErrorDto(error));

0 commit comments

Comments
 (0)