Skip to content

Commit 3b4dc16

Browse files
mjabascal10Copilot
andcommitted
Update frontend/src/app/core/auth/account.service.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent bcb7d34 commit 3b4dc16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/app/core/auth/account.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export class AccountService {
3737
}
3838

3939
checkPassword(password: string, uuid: string): Observable<HttpResponse<string>> {
40-
const sanitized_password = encodeURIComponent(password)
41-
return this.http.get(SERVER_API_URL + `api/check-credentials?password=${sanitized_password}&checkUUID=${uuid}`, {
40+
const body = { password, checkUUID: uuid };
41+
return this.http.post(SERVER_API_URL + 'api/check-credentials', body, {
4242
observe: 'response',
4343
responseType: 'text'
4444
});

0 commit comments

Comments
 (0)