]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Fix saving credentials in password manager 4014/head
authormoisseev <moiseev@mezonplus.ru>
Sat, 18 Dec 2021 17:44:39 +0000 (20:44 +0300)
committermoisseev <moiseev@mezonplus.ru>
Sat, 18 Dec 2021 17:44:39 +0000 (20:44 +0300)
for recent browser versions.

interface/index.html

index 1b66cf3293cd9f84afb46808f6d7e26893d01221..2a5e181aea454426391e02fd72f8c93656a90588 100644 (file)
                                <form id="connectForm">
                                        <div class="form-group">
                                                <div class="input-group">
+                                                       <!-- In recent browser versions username is required to save credentials in a password manager.
+                                                           Browser detects passwords by form.elements[n].type == "password" and then detects
+                                                               the username field by searching backwards through form elements for the text field
+                                                               immediately before the password fields. -->
+                                                       <input value="Rspamd controller password" style="display: none;"/>
                                                        <input class="form-control"
                                                                   type="password"
                                                                   id="connectPassword"