mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	fix(ui): autocomplete off for password fields (#11070)
This commit is contained in:
		
							parent
							
								
									3f0a9090e2
								
							
						
					
					
						commit
						eb7ab3054f
					
				| @ -85,6 +85,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|             <Space className="w-full tw-justify-between ant-space-authMechanism"> |             <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|                 readOnly |                 readOnly | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="token" |                 data-testid="token" | ||||||
|                 placeholder="Generate new token..." |                 placeholder="Generate new token..." | ||||||
|                 value={JWTToken} |                 value={JWTToken} | ||||||
| @ -158,6 +159,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input.Password |                 <Input.Password | ||||||
|                   readOnly |                   readOnly | ||||||
|  |                   autoComplete="off" | ||||||
|                   data-testid="secretKey" |                   data-testid="secretKey" | ||||||
|                   value={authConfig?.secretKey} |                   value={authConfig?.secretKey} | ||||||
|                 /> |                 /> | ||||||
| @ -171,6 +173,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input.Password |                 <Input.Password | ||||||
|                   readOnly |                   readOnly | ||||||
|  |                   autoComplete="off" | ||||||
|                   data-testid="privateKey" |                   data-testid="privateKey" | ||||||
|                   value={authConfig?.privateKey} |                   value={authConfig?.privateKey} | ||||||
|                 /> |                 /> | ||||||
| @ -184,6 +187,7 @@ const AuthMechanism: FC<Props> = ({ | |||||||
|               <Space className="w-full tw-justify-between ant-space-authMechanism"> |               <Space className="w-full tw-justify-between ant-space-authMechanism"> | ||||||
|                 <Input.Password |                 <Input.Password | ||||||
|                   readOnly |                   readOnly | ||||||
|  |                   autoComplete="off" | ||||||
|                   data-testid="clientSecret" |                   data-testid="clientSecret" | ||||||
|                   value={authConfig?.clientSecret} |                   value={authConfig?.clientSecret} | ||||||
|                 /> |                 /> | ||||||
|  | |||||||
| @ -238,6 +238,7 @@ const AuthMechanismForm: FC<Props> = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="secretKey" |                 data-testid="secretKey" | ||||||
|                 name="secretKey" |                 name="secretKey" | ||||||
|                 placeholder={t('label.secret-key')} |                 placeholder={t('label.secret-key')} | ||||||
| @ -273,6 +274,7 @@ const AuthMechanismForm: FC<Props> = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="secretKey" |                 data-testid="secretKey" | ||||||
|                 name="secretKey" |                 name="secretKey" | ||||||
|                 placeholder={t('label.secret-key')} |                 placeholder={t('label.secret-key')} | ||||||
| @ -334,6 +336,7 @@ const AuthMechanismForm: FC<Props> = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="clientSecret" |                 data-testid="clientSecret" | ||||||
|                 name="clientSecret" |                 name="clientSecret" | ||||||
|                 placeholder={t('label.client-secret')} |                 placeholder={t('label.client-secret')} | ||||||
| @ -416,6 +419,7 @@ const AuthMechanismForm: FC<Props> = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="privateKey" |                 data-testid="privateKey" | ||||||
|                 name="privateKey" |                 name="privateKey" | ||||||
|                 placeholder={t('label.privateKey')} |                 placeholder={t('label.privateKey')} | ||||||
| @ -508,6 +512,7 @@ const AuthMechanismForm: FC<Props> = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="secretKey" |                 data-testid="secretKey" | ||||||
|                 name="secretKey" |                 name="secretKey" | ||||||
|                 placeholder={t('label.secret-key')} |                 placeholder={t('label.secret-key')} | ||||||
|  | |||||||
| @ -369,6 +369,7 @@ const CreateUser = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="secretKey" |                 data-testid="secretKey" | ||||||
|                 name="secretKey" |                 name="secretKey" | ||||||
|                 placeholder={t('label.secret-key')} |                 placeholder={t('label.secret-key')} | ||||||
| @ -404,6 +405,7 @@ const CreateUser = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="secretKey" |                 data-testid="secretKey" | ||||||
|                 name="secretKey" |                 name="secretKey" | ||||||
|                 placeholder={t('label.secret-key')} |                 placeholder={t('label.secret-key')} | ||||||
| @ -467,6 +469,7 @@ const CreateUser = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="clientSecret" |                 data-testid="clientSecret" | ||||||
|                 name="clientSecret" |                 name="clientSecret" | ||||||
|                 placeholder={t('label.client-secret')} |                 placeholder={t('label.client-secret')} | ||||||
| @ -547,6 +550,7 @@ const CreateUser = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="privateKey" |                 data-testid="privateKey" | ||||||
|                 name="privateKey" |                 name="privateKey" | ||||||
|                 placeholder={t('label.private-key')} |                 placeholder={t('label.private-key')} | ||||||
| @ -639,6 +643,7 @@ const CreateUser = ({ | |||||||
|                 }, |                 }, | ||||||
|               ]}> |               ]}> | ||||||
|               <Input.Password |               <Input.Password | ||||||
|  |                 autoComplete="off" | ||||||
|                 data-testid="secretKey" |                 data-testid="secretKey" | ||||||
|                 name="secretKey" |                 name="secretKey" | ||||||
|                 placeholder={t('label.secret-key')} |                 placeholder={t('label.secret-key')} | ||||||
| @ -868,6 +873,7 @@ const CreateUser = ({ | |||||||
|                           }, |                           }, | ||||||
|                         ]}> |                         ]}> | ||||||
|                         <Input.Password |                         <Input.Password | ||||||
|  |                           autoComplete="off" | ||||||
|                           name="password" |                           name="password" | ||||||
|                           placeholder={t('label.password-type', { |                           placeholder={t('label.password-type', { | ||||||
|                             type: t('label.enter'), |                             type: t('label.enter'), | ||||||
| @ -896,6 +902,7 @@ const CreateUser = ({ | |||||||
|                           }, |                           }, | ||||||
|                         ]}> |                         ]}> | ||||||
|                         <Input.Password |                         <Input.Password | ||||||
|  |                           autoComplete="off" | ||||||
|                           name="confirmPassword" |                           name="confirmPassword" | ||||||
|                           placeholder={t('label.password-type', { |                           placeholder={t('label.password-type', { | ||||||
|                             type: t('label.confirm'), |                             type: t('label.confirm'), | ||||||
| @ -943,6 +950,7 @@ const CreateUser = ({ | |||||||
|                               </div> |                               </div> | ||||||
|                             </div> |                             </div> | ||||||
|                           } |                           } | ||||||
|  |                           autoComplete="off" | ||||||
|                           name="generatedPassword" |                           name="generatedPassword" | ||||||
|                           value={generatedPassword} |                           value={generatedPassword} | ||||||
|                         /> |                         /> | ||||||
|  | |||||||
| @ -76,6 +76,7 @@ const ChangePasswordForm: React.FC<ChangePasswordForm> = ({ | |||||||
|               }, |               }, | ||||||
|             ]}> |             ]}> | ||||||
|             <Input.Password |             <Input.Password | ||||||
|  |               autoComplete="off" | ||||||
|               data-testid="name" |               data-testid="name" | ||||||
|               placeholder={t('label.enter-type-password', { |               placeholder={t('label.enter-type-password', { | ||||||
|                 type: t('label.old'), |                 type: t('label.old'), | ||||||
| @ -96,6 +97,7 @@ const ChangePasswordForm: React.FC<ChangePasswordForm> = ({ | |||||||
|             }, |             }, | ||||||
|           ]}> |           ]}> | ||||||
|           <Input.Password |           <Input.Password | ||||||
|  |             autoComplete="off" | ||||||
|             placeholder={t('label.enter-type-password', { |             placeholder={t('label.enter-type-password', { | ||||||
|               type: t('label.new'), |               type: t('label.new'), | ||||||
|             })} |             })} | ||||||
| @ -115,7 +117,10 @@ const ChangePasswordForm: React.FC<ChangePasswordForm> = ({ | |||||||
|               }, |               }, | ||||||
|             }, |             }, | ||||||
|           ]}> |           ]}> | ||||||
|           <Input.Password placeholder={t('label.confirm-new-password')} /> |           <Input.Password | ||||||
|  |             autoComplete="off" | ||||||
|  |             placeholder={t('label.confirm-new-password')} | ||||||
|  |           /> | ||||||
|         </Form.Item> |         </Form.Item> | ||||||
|       </Form> |       </Form> | ||||||
|     </Modal> |     </Modal> | ||||||
|  | |||||||
| @ -123,6 +123,7 @@ export const DBTCloudConfig: FunctionComponent<Props> = ({ | |||||||
|           {t('label.dbt-cloud-account-auth-token')} |           {t('label.dbt-cloud-account-auth-token')} | ||||||
|         </p> |         </p> | ||||||
|         <Input.Password |         <Input.Password | ||||||
|  |           autoComplete="off" | ||||||
|           className="tw-form-inputs tw-form-inputs-padding" |           className="tw-form-inputs tw-form-inputs-padding" | ||||||
|           data-testid="cloud-auth-token" |           data-testid="cloud-auth-token" | ||||||
|           id="cloud-auth-token" |           id="cloud-auth-token" | ||||||
|  | |||||||
| @ -188,6 +188,7 @@ export const DBTGCSConfig: FunctionComponent<Props> = ({ | |||||||
|             {t('label.google-cloud-private-key-id')} |             {t('label.google-cloud-private-key-id')} | ||||||
|           </p> |           </p> | ||||||
|           <Input.Password |           <Input.Password | ||||||
|  |             autoComplete="off" | ||||||
|             className="tw-form-inputs tw-form-inputs-padding" |             className="tw-form-inputs tw-form-inputs-padding" | ||||||
|             data-testid="private-key-id" |             data-testid="private-key-id" | ||||||
|             id="private-key-id" |             id="private-key-id" | ||||||
| @ -209,6 +210,7 @@ export const DBTGCSConfig: FunctionComponent<Props> = ({ | |||||||
|             {t('label.google-cloud-private-key')} |             {t('label.google-cloud-private-key')} | ||||||
|           </p> |           </p> | ||||||
|           <Input.Password |           <Input.Password | ||||||
|  |             autoComplete="off" | ||||||
|             className="tw-form-inputs tw-form-inputs-padding" |             className="tw-form-inputs tw-form-inputs-padding" | ||||||
|             data-testid="private-key" |             data-testid="private-key" | ||||||
|             id="private-key" |             id="private-key" | ||||||
|  | |||||||
| @ -119,6 +119,7 @@ export const DBTS3Config: FunctionComponent<Props> = ({ | |||||||
|           {`${t('label.aws-access-key-id')}.`} |           {`${t('label.aws-access-key-id')}.`} | ||||||
|         </p> |         </p> | ||||||
|         <Input.Password |         <Input.Password | ||||||
|  |           autoComplete="off" | ||||||
|           className="tw-form-inputs tw-form-inputs-padding" |           className="tw-form-inputs tw-form-inputs-padding" | ||||||
|           data-testid="aws-access-key-id" |           data-testid="aws-access-key-id" | ||||||
|           id="aws-access-key-id" |           id="aws-access-key-id" | ||||||
| @ -138,6 +139,7 @@ export const DBTS3Config: FunctionComponent<Props> = ({ | |||||||
|         </p> |         </p> | ||||||
| 
 | 
 | ||||||
|         <Input.Password |         <Input.Password | ||||||
|  |           autoComplete="off" | ||||||
|           className="tw-form-inputs tw-form-inputs-padding" |           className="tw-form-inputs tw-form-inputs-padding" | ||||||
|           data-testid="aws-secret-access-key-id" |           data-testid="aws-secret-access-key-id" | ||||||
|           id="aws-secret-access-key-id" |           id="aws-secret-access-key-id" | ||||||
| @ -174,6 +176,7 @@ export const DBTS3Config: FunctionComponent<Props> = ({ | |||||||
|           {`${t('label.aws-session-token')}.`} |           {`${t('label.aws-session-token')}.`} | ||||||
|         </p> |         </p> | ||||||
|         <Input.Password |         <Input.Password | ||||||
|  |           autoComplete="off" | ||||||
|           className="tw-form-inputs tw-form-inputs-padding" |           className="tw-form-inputs tw-form-inputs-padding" | ||||||
|           data-testid="aws-session-token" |           data-testid="aws-session-token" | ||||||
|           id="aws-session-token" |           id="aws-session-token" | ||||||
|  | |||||||
| @ -260,7 +260,10 @@ const SigninPage = () => { | |||||||
|                     name="password" |                     name="password" | ||||||
|                     requiredMark={false} |                     requiredMark={false} | ||||||
|                     rules={[{ required: true }]}> |                     rules={[{ required: true }]}> | ||||||
|                     <Input.Password placeholder={t('label.password')} /> |                     <Input.Password | ||||||
|  |                       autoComplete="off" | ||||||
|  |                       placeholder={t('label.password')} | ||||||
|  |                     /> | ||||||
|                   </Form.Item> |                   </Form.Item> | ||||||
| 
 | 
 | ||||||
|                   <Button |                   <Button | ||||||
|  | |||||||
| @ -129,6 +129,7 @@ const ResetPassword = () => { | |||||||
|                     }, |                     }, | ||||||
|                   ]}> |                   ]}> | ||||||
|                   <Input.Password |                   <Input.Password | ||||||
|  |                     autoComplete="off" | ||||||
|                     className="w-full" |                     className="w-full" | ||||||
|                     placeholder={t('label.enter-entity', { |                     placeholder={t('label.enter-entity', { | ||||||
|                       entity: t('label.new-password'), |                       entity: t('label.new-password'), | ||||||
| @ -156,6 +157,7 @@ const ResetPassword = () => { | |||||||
|                     }, |                     }, | ||||||
|                   ]}> |                   ]}> | ||||||
|                   <Input.Password |                   <Input.Password | ||||||
|  |                     autoComplete="off" | ||||||
|                     className="w-full" |                     className="w-full" | ||||||
|                     placeholder={t('label.re-enter-new-password')} |                     placeholder={t('label.re-enter-new-password')} | ||||||
|                   /> |                   /> | ||||||
|  | |||||||
| @ -135,6 +135,7 @@ const BasicSignUp = () => { | |||||||
|                             }, |                             }, | ||||||
|                           ]}> |                           ]}> | ||||||
|                           <Input.Password |                           <Input.Password | ||||||
|  |                             autoComplete="off" | ||||||
|                             placeholder={t('label.enter-entity', { |                             placeholder={t('label.enter-entity', { | ||||||
|                               entity: t('label.password-lowercase'), |                               entity: t('label.password-lowercase'), | ||||||
|                             })} |                             })} | ||||||
| @ -164,6 +165,7 @@ const BasicSignUp = () => { | |||||||
|                             }, |                             }, | ||||||
|                           ]}> |                           ]}> | ||||||
|                           <Input.Password |                           <Input.Password | ||||||
|  |                             autoComplete="off" | ||||||
|                             placeholder={t('label.confirm-password')} |                             placeholder={t('label.confirm-password')} | ||||||
|                           /> |                           /> | ||||||
|                         </Form.Item> |                         </Form.Item> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Chirag Madlani
						Chirag Madlani