Hide autofill in profile settings (#442)

* hide autofill in profile settings
This commit is contained in:
Ilya Y 2024-04-22 16:59:39 +03:00 committed by GitHub
parent 36fff73af6
commit c9f494d2c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 4 deletions

View File

@ -195,7 +195,7 @@ export const ProfileSettings = () => {
<div class="col-md-20 col-lg-18 col-xl-16"> <div class="col-md-20 col-lg-18 col-xl-16">
<h1>{t('Profile settings')}</h1> <h1>{t('Profile settings')}</h1>
<p class="description">{t('Here you can customize your profile the way you want.')}</p> <p class="description">{t('Here you can customize your profile the way you want.')}</p>
<form enctype="multipart/form-data"> <form enctype="multipart/form-data" autocomplete="off">
<h4>{t('Userpic')}</h4> <h4>{t('Userpic')}</h4>
<div class="pretty-form__item"> <div class="pretty-form__item">
<div <div
@ -262,15 +262,16 @@ export const ProfileSettings = () => {
<div class="pretty-form__item"> <div class="pretty-form__item">
<input <input
type="text" type="text"
name="username" name="nameOfUser"
id="username" id="nameOfUser"
data-lpignore="true"
autocomplete="one-time-code" autocomplete="one-time-code"
placeholder={t('Name')} placeholder={t('Name')}
onInput={(event) => updateFormField('name', event.currentTarget.value)} onInput={(event) => updateFormField('name', event.currentTarget.value)}
value={form.name} value={form.name}
ref={(el) => (nameInputRef.current = el)} ref={(el) => (nameInputRef.current = el)}
/> />
<label for="username">{t('Name')}</label> <label for="nameOfUser">{t('Name')}</label>
<Show when={nameError()}> <Show when={nameError()}>
<div <div
style={{ position: 'absolute', 'margin-top': '-4px' }} style={{ position: 'absolute', 'margin-top': '-4px' }}
@ -290,6 +291,7 @@ export const ProfileSettings = () => {
type="text" type="text"
name="user-address" name="user-address"
id="user-address" id="user-address"
data-lpignore="true"
autocomplete="one-time-code2" autocomplete="one-time-code2"
onInput={(event) => updateFormField('slug', event.currentTarget.value)} onInput={(event) => updateFormField('slug', event.currentTarget.value)}
value={form.slug} value={form.slug}

View File

@ -320,3 +320,14 @@ h5 {
margin-bottom: 0; margin-bottom: 0;
} }
} }
// disable last pass extention
div[data-lastpass-icon-root="true"] {
opacity: 0 !important;
}
div[data-lastpass-infield="true"] {
opacity: 0 !important;
}