Skip to content

Commit d64e3d6

Browse files
committed
Remove password from API login message
1 parent a6e4078 commit d64e3d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Atomx/AtomxClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ public function login()
8585
]
8686
]);
8787
} catch (ApiException $e) {
88-
throw new ApiException('Unable to login to API!');
88+
$message = str_replace($e->getMessage(), $this->accountStore->getPassword(), '[redacted]');
89+
90+
throw new ApiException('Unable to login to API! Message: ' . $message);
8991
}
9092

9193
$this->requiresLogin = true;

0 commit comments

Comments
 (0)