WebUI: add autocomplete="new-password" for internal password fields
See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
e38350e8b3
commit
810bf4542f
7 changed files with 19 additions and 19 deletions
|
@ -47,7 +47,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="fv-row mb-10">
|
||||
<div class="position-relative" data-password-control="container">
|
||||
<input data-i18n="[placeholder]login.password" data-password-control="input" class="form-control form-control-lg form-control-solid"
|
||||
type="password" name="password" placeholder="Password" autocomplete="password" spellcheck="false" required />
|
||||
type="password" name="password" placeholder="Password" autocomplete="new-password" spellcheck="false" required />
|
||||
<span class="btn btn-sm btn-icon position-absolute translate-middle top-50 end-0 me-n2" data-password-control="visibility">
|
||||
<i class="ki-duotone ki-eye-slash fs-1">
|
||||
<span class="path1"></span>
|
||||
|
|
|
@ -57,7 +57,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div data-repeater-item>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-9 mt-3 mt-md-8">
|
||||
<input data-i18n="[placeholder]virtual_folders.name" type="text" class="form-control" name="tpl_foldername" autocomplete="nope" spellcheck="false" value="" />
|
||||
<input data-i18n="[placeholder]virtual_folders.name" type="text" class="form-control" name="tpl_foldername" autocomplete="off" spellcheck="false" value="" />
|
||||
</div>
|
||||
<div class="col-md-3 mt-3 mt-md-8">
|
||||
<a href="#" data-repeater-delete
|
||||
|
@ -92,7 +92,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<label for="idFolderName" data-i18n="general.name" class="col-md-3 col-form-label">Name</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idFolderName" type="text" class="form-control" placeholder="" name="name" value="{{.Folder.Name}}"
|
||||
maxlength="255" autocomplete="nope" spellcheck="false" required {{if ge .Mode 2}}readonly{{end}} />
|
||||
maxlength="255" autocomplete="off" spellcheck="false" required {{if ge .Mode 2}}readonly{{end}} />
|
||||
</div>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
|
|
@ -84,7 +84,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-s3fs">
|
||||
<label for="idS3AccessSecret" data-i18n="storage.access_secret" class="col-md-3 col-form-label">Access Secret</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idS3AccessSecret" type="password" class="form-control" name="s3_access_secret" autocomplete="off" spellcheck="false"
|
||||
<input id="idS3AccessSecret" type="password" class="form-control" name="s3_access_secret" autocomplete="new-password" spellcheck="false"
|
||||
value="{{if .S3Config.AccessSecret.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.S3Config.AccessSecret.GetPayload}}{{end}}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -269,7 +269,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-azblobfs">
|
||||
<label for="idAzAccountKey" data-i18n="storage.account_key" class="col-md-3 col-form-label">Account Key</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idAzAccountKey" type="password" class="form-control" name="az_account_key" autocomplete="off" spellcheck="false"
|
||||
<input id="idAzAccountKey" type="password" class="form-control" name="az_account_key" autocomplete="new-password" spellcheck="false"
|
||||
value="{{if .AzBlobConfig.AccountKey.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.AzBlobConfig.AccountKey.GetPayload}}{{end}}"/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -277,7 +277,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-azblobfs">
|
||||
<label for="idAzSASURL" data-i18n="storage.sas_url" class="col-md-3 col-form-label">SAS URL</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idAzSASURL" type="password" class="form-control" name="az_sas_url" autocomplete="off" spellcheck="false" aria-describedby="idAzSASURLHelp"
|
||||
<input id="idAzSASURL" type="password" class="form-control" name="az_sas_url" autocomplete="new-password" spellcheck="false" aria-describedby="idAzSASURLHelp"
|
||||
value="{{if .AzBlobConfig.SASURL.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.AzBlobConfig.SASURL.GetPayload}}{{end}}"/>
|
||||
<div id="idAzSASURLHelp" class="form-text" data-i18n="storage.sas_url_help"></div>
|
||||
</div>
|
||||
|
@ -351,7 +351,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-cryptfs">
|
||||
<label for="idCryptPassphrase" data-i18n="storage.passphrase" class="col-md-3 col-form-label">Passphrase</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idCryptPassphrase" type="password" class="form-control" name="crypt_passphrase" autocomplete="off" spellcheck="false" aria-describedby="idCryptPassphraseHelp"
|
||||
<input id="idCryptPassphrase" type="password" class="form-control" name="crypt_passphrase" autocomplete="new-password" spellcheck="false" aria-describedby="idCryptPassphraseHelp"
|
||||
value="{{if .CryptConfig.Passphrase.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.CryptConfig.Passphrase.GetPayload}}{{end}}"/>
|
||||
<div id="idCryptPassphraseHelp" class="form-text" data-i18n="storage.passphrase_help"></div>
|
||||
</div>
|
||||
|
@ -389,7 +389,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-sftpfs">
|
||||
<label for="idSFTPPassword" data-i18n="login.password" class="col-md-3 col-form-label">Password</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idSFTPPassword" type="password" class="form-control" name="sftp_password" autocomplete="off" spellcheck="false"
|
||||
<input id="idSFTPPassword" type="password" class="form-control" name="sftp_password" autocomplete="new-password" spellcheck="false"
|
||||
value="{{if .SFTPConfig.Password.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.SFTPConfig.Password.GetPayload}}{{end}}" />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -405,7 +405,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-sftpfs">
|
||||
<label for="idSFTPPassphrase" data-i18n="storage.passphrase" class="col-md-3 col-form-label">Passphrase</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idSFTPPassphrase" type="password" class="form-control" name="sftp_key_passphrase" autocomplete="off" spellcheck="false" aria-describedby="idSFTPPassphraseHelp"
|
||||
<input id="idSFTPPassphrase" type="password" class="form-control" name="sftp_key_passphrase" autocomplete="new-password" spellcheck="false" aria-describedby="idSFTPPassphraseHelp"
|
||||
value="{{if .SFTPConfig.KeyPassphrase.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.SFTPConfig.KeyPassphrase.GetPayload}}{{end}}" />
|
||||
<div id="idSFTPPassphraseHelp" class="form-text" data-i18n="storage.passphrase_key_help"></div>
|
||||
</div>
|
||||
|
@ -473,7 +473,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-httpfs">
|
||||
<label for="idHTTPPassword" data-i18n="login.password" class="col-md-3 col-form-label">Password</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idHTTPPassword" type="password" class="form-control" name="http_password" autocomplete="off" spellcheck="false"
|
||||
<input id="idHTTPPassword" type="password" class="form-control" name="http_password" autocomplete="new-password" spellcheck="false"
|
||||
value="{{if .HTTPConfig.Password.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.HTTPConfig.Password.GetPayload}}{{end}}" />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -481,7 +481,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10 fsconfig fsconfig-httpfs">
|
||||
<label for="idHTTPAPIKey" data-i18n="storage.api_key" class="col-md-3 col-form-label">API Key</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idHTTPAPIKey" type="password" class="form-control" name="http_api_key" autocomplete="off" spellcheck="false"
|
||||
<input id="idHTTPAPIKey" type="password" class="form-control" name="http_api_key" autocomplete="new-password" spellcheck="false"
|
||||
value="{{if .HTTPConfig.APIKey.IsEncrypted}}{{.RedactedSecret}}{{else}}{{.HTTPConfig.APIKey.GetPayload}}{{end}}" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -28,7 +28,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<label for="idGroupName" data-i18n="general.name" class="col-md-3 col-form-label">Name</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idGroupName" type="text" class="form-control" placeholder="" name="name" value="{{.Group.Name}}"
|
||||
maxlength="255" autocomplete="nope" spellcheck="false" required {{if eq .Mode 2}}readonly{{end}} />
|
||||
maxlength="255" autocomplete="off" spellcheck="false" required {{if eq .Mode 2}}readonly{{end}} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<label for="idRoleName" data-i18n="general.name" class="col-md-3 col-form-label">Name</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idRoleName" type="text" class="form-control" placeholder="" name="name" value="{{.Role.Name}}"
|
||||
maxlength="255" autocomplete="nope" spellcheck="false" required {{if eq .Mode 2}}readonly{{end}} />
|
||||
maxlength="255" autocomplete="off" spellcheck="false" required {{if eq .Mode 2}}readonly{{end}} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -60,10 +60,10 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div data-repeater-item>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-3 mt-3 mt-md-8">
|
||||
<input data-i18n="[placeholder]login.username" type="text" class="form-control" name="tpl_username" autocomplete="nope" spellcheck="false" value="" />
|
||||
<input data-i18n="[placeholder]login.username" type="text" class="form-control" name="tpl_username" autocomplete="off" spellcheck="false" value="" />
|
||||
</div>
|
||||
<div class="col-md-3 mt-3 mt-md-8">
|
||||
<input data-i18n="[placeholder]login.password" type="password" class="form-control" name="tpl_password" autocomplete="nope" spellcheck="false" value="" />
|
||||
<input data-i18n="[placeholder]login.password" type="password" class="form-control" name="tpl_password" autocomplete="new-password" spellcheck="false" value="" />
|
||||
</div>
|
||||
<div class="col-md-5 mt-3 mt-md-8">
|
||||
<textarea class="form-control" name="tpl_public_keys" rows="5" placeholder="Paste your public key here"></textarea>
|
||||
|
@ -100,7 +100,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<label for="idUsername" data-i18n="login.username" class="col-md-3 col-form-label">Username</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idUsername" type="text" class="form-control" placeholder="" name="username" value="{{.User.Username}}"
|
||||
maxlength="255" autocomplete="nope" spellcheck="false" required {{if ge .Mode 2}}readonly{{end}} />
|
||||
maxlength="255" autocomplete="off" spellcheck="false" required {{if ge .Mode 2}}readonly{{end}} />
|
||||
</div>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
@ -126,7 +126,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10">
|
||||
<label for="idPassword" data-i18n="login.password" class="col-md-3 col-form-label">Password</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idPassword" type="password" class="form-control" name="password" autocomplete="off"
|
||||
<input id="idPassword" type="password" class="form-control" name="password" autocomplete="new-password"
|
||||
spellcheck="false" value="{{.User.Password}}" />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -393,7 +393,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<label for="idEmail" data-i18n="general.email" class="col-md-3 col-form-label">Email</label>
|
||||
<div class="col-md-9">
|
||||
<input id="idEmail" type="text" class="form-control" placeholder="" name="email" value="{{.User.Email}}"
|
||||
maxlength="255" autocomplete="nope" spellcheck="false" />
|
||||
maxlength="255" autocomplete="off" spellcheck="false" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="form-group row mt-10">
|
||||
<label for="password" data-i18n="login.password" class="col-md-3 col-form-label">Password</label>
|
||||
<div class="col-md-9">
|
||||
<input id="password" type="password" class="form-control" name="password" autocomplete="off"
|
||||
<input id="password" type="password" class="form-control" name="password" autocomplete="new-password"
|
||||
placeholder="" spellcheck="false" value="{{.Share.Password}}" aria-describedby="passwordHelp" />
|
||||
<div id="passwordHelp" data-i18n="share.password_help" class="form-text">
|
||||
If set the share will be password-protected
|
||||
|
|
Loading…
Reference in a new issue