Skip to content

Commit 98bec56

Browse files
committed
fix: handle special characters in password query parameter
1 parent fccdf32 commit 98bec56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/app/shared/components/utm/util/utm-agent-console/utm-agent-console.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ export class UtmAgentConsoleComponent implements OnInit, OnDestroy {
198198

199199
checkPassword() {
200200
const uuid = UUID.UUID();
201-
this.accountService.checkPassword(this.pass, uuid).subscribe(response => {
201+
const encodedPassword = encodeURIComponent(this.pass);
202+
const encodedUUID = encodeURIComponent(uuid);
203+
this.accountService.checkPassword(encodedPassword, encodedUUID).subscribe(response => {
202204
if (response.body !== uuid) {
203205
this.toast.showError('Invalid check UUID', 'UUID to check your password does not match');
204206
} else {

0 commit comments

Comments
 (0)