Allow username field detection

main
Bob Mottram 2021-09-24 13:51:10 +01:00
parent cb0a2a33b1
commit 827deb8a97
2 changed files with 5 additions and 4 deletions

View File

@ -13296,7 +13296,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.baseDir,
self.server.httpPrefix,
self.server.domainFull,
self.server.systemLanguage).encode('utf-8')
self.server.systemLanguage,
True).encode('utf-8')
msglen = len(msg)
self._login_headers('text/html', msglen, callingDomain)
self._write(msg)

View File

@ -57,7 +57,7 @@ def htmlLogin(cssCache: {}, translate: {},
baseDir: str,
httpPrefix: str, domain: str,
systemLanguage: str,
autocomplete: bool = True) -> str:
autocomplete: bool) -> str:
"""Shows the login screen
"""
accounts = noOfAccounts(baseDir)
@ -146,8 +146,8 @@ def htmlLogin(cssCache: {}, translate: {},
autocompleteNicknameStr = 'autocomplete="username"'
autocompletePasswordStr = 'autocomplete="current-password"'
if not autocomplete:
autocompleteNicknameStr = 'autocomplete="off" value=""'
autocompletePasswordStr = autocompleteNicknameStr
autocompleteNicknameStr = 'autocomplete="username" value=""'
autocompletePasswordStr = 'autocomplete="off" value=""'
instanceTitle = \
getConfigParam(baseDir, 'instanceTitle')