chore: autocomplete user info

This commit is contained in:
jialin
2026-03-17 16:35:55 +08:00
committed by jialin
parent ed4be2328f
commit e72cacc4b2
5 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -73,8 +73,8 @@ const SealPassword: React.FC<InputProps & SealFormItemProps & PasswordProps> = (
> >
<Input.Password <Input.Password
{...rest} {...rest}
autoComplete={rest.autoComplete || 'off'}
ref={inputRef} ref={inputRef}
autoComplete="off"
className="seal-input-password" className="seal-input-password"
onFocus={handleOnFocus} onFocus={handleOnFocus}
onBlur={handleOnBlur} onBlur={handleOnBlur}
+1 -1
View File
@@ -93,9 +93,9 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
> >
<Input <Input
{...rest} {...rest}
autoComplete={rest.autoComplete || 'off'}
placeholder={isFocus || !label ? placeholder : ''} placeholder={isFocus || !label ? placeholder : ''}
ref={inputRef} ref={inputRef}
autoComplete="off"
onInput={handleInput} onInput={handleInput}
onFocus={handleOnFocus} onFocus={handleOnFocus}
onBlur={handleOnBlur} onBlur={handleOnBlur}
@@ -94,6 +94,7 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
]} ]}
> >
<SealInput.Input <SealInput.Input
autoComplete="username"
label={intl.formatMessage({ id: 'common.form.username' })} label={intl.formatMessage({ id: 'common.form.username' })}
prefix={<UserOutlined />} prefix={<UserOutlined />}
/> />
@@ -114,6 +115,7 @@ const LocalUserForm: React.FC<LocalUserFormProps> = (props) => {
]} ]}
> >
<SealInput.Password <SealInput.Password
autoComplete="current-password"
prefix={<LockOutlined />} prefix={<LockOutlined />}
label={intl.formatMessage({ id: 'common.form.password' })} label={intl.formatMessage({ id: 'common.form.password' })}
/> />
@@ -89,6 +89,7 @@ const PasswordForm: React.FC = () => {
]} ]}
> >
<SealInput.Password <SealInput.Password
autoComplete="new-password"
prefix={<LockOutlined />} prefix={<LockOutlined />}
label={intl.formatMessage({ id: 'users.form.newpassword' })} label={intl.formatMessage({ id: 'users.form.newpassword' })}
/> />
@@ -118,6 +119,7 @@ const PasswordForm: React.FC = () => {
]} ]}
> >
<SealInput.Password <SealInput.Password
autoComplete="new-password"
prefix={<LockOutlined />} prefix={<LockOutlined />}
label={intl.formatMessage({ id: 'users.password.confirm' })} label={intl.formatMessage({ id: 'users.password.confirm' })}
/> />
@@ -58,6 +58,7 @@ const Profile: React.FC = () => {
]} ]}
> >
<SealInput.Password <SealInput.Password
autoComplete="current-password"
label={intl.formatMessage({ id: 'users.form.currentpassword' })} label={intl.formatMessage({ id: 'users.form.currentpassword' })}
required required
style={{ width: INPUT_WIDTH.default }} style={{ width: INPUT_WIDTH.default }}
@@ -76,6 +77,7 @@ const Profile: React.FC = () => {
]} ]}
> >
<SealInput.Password <SealInput.Password
autoComplete="new-password"
label={intl.formatMessage({ id: 'users.form.newpassword' })} label={intl.formatMessage({ id: 'users.form.newpassword' })}
required required
style={{ width: INPUT_WIDTH.default }} style={{ width: INPUT_WIDTH.default }}
@@ -107,6 +109,7 @@ const Profile: React.FC = () => {
> >
<SealInput.Password <SealInput.Password
required={true} required={true}
autoComplete="new-password"
style={{ width: INPUT_WIDTH.default }} style={{ width: INPUT_WIDTH.default }}
label={intl.formatMessage({ id: 'users.password.confirm' })} label={intl.formatMessage({ id: 'users.password.confirm' })}
/> />