commit 6a2db7e: [WebUI] Fix saving credentials in password manager

moisseev moiseev at mezonplus.ru
Sat Dec 18 19:14:04 UTC 2021


Author: moisseev
Date: 2021-12-18 20:44:39 +0300
URL: https://github.com/rspamd/rspamd/commit/6a2db7ef3845584274445b93b4aa98533b6be2e3 (refs/pull/4014/head)

[WebUI] Fix saving credentials in password manager
for recent browser versions.

---
 interface/index.html | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/interface/index.html b/interface/index.html
index 1b66cf329..2a5e181ae 100644
--- a/interface/index.html
+++ b/interface/index.html
@@ -589,6 +589,11 @@
 				<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"


More information about the Commits mailing list