Skip to content

Commit

Permalink
Merge pull request #1052 from yaacov/validate-clear-text
Browse files Browse the repository at this point in the history
🐞  Validate secret text instead of base64 text
  • Loading branch information
yaacov authored Apr 2, 2024
2 parents 113a183 + 75f7d0d commit 71b7d24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export const EsxiCredentialsEdit: React.FC<EditComponentProps> = ({ secret, onCh
const initialState = {
passwordHidden: true,
validation: {
user: esxiSecretFieldValidator('user', secret?.data?.user),
password: esxiSecretFieldValidator('password', secret?.data?.password),
user: esxiSecretFieldValidator('user', user),
password: esxiSecretFieldValidator('password', password),
insecureSkipVerify: { type: 'default', msg: 'Skip certificate validation' },
cacert: {
type: 'default',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export const VCenterCredentialsEdit: React.FC<EditComponentProps> = ({ secret, o
const initialState = {
passwordHidden: true,
validation: {
user: vcenterSecretFieldValidator('user', secret?.data?.user),
password: vcenterSecretFieldValidator('password', secret?.data?.password),
user: vcenterSecretFieldValidator('user', user),
password: vcenterSecretFieldValidator('password', password),
insecureSkipVerify: { type: 'default', msg: 'Skip certificate validation' },
cacert: {
type: 'default',
Expand Down

0 comments on commit 71b7d24

Please sign in to comment.