Skip to content

Commit

Permalink
Set login autocomplete to off when set to false in config.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylianst committed Mar 24, 2024
1 parent e6ee203 commit 8775b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver.js
Expand Up @@ -8803,7 +8803,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
}
xargs.extitle = encodeURIComponent(xargs.title).split('\'').join('\\\'');
xargs.domainurl = domain.url;
xargs.autocomplete = (domain.autocomplete === false) ? 'x' : 'autocomplete'; // This option allows autocomplete to be turned off on the login page.
xargs.autocomplete = (domain.autocomplete === false) ? 'autocomplete=off x' : 'autocomplete'; // This option allows autocomplete to be turned off on the login page.
if (typeof domain.hide == 'number') { xargs.hide = domain.hide; }

// To mitigate any possible BREACH attack, we generate a random 0 to 255 bytes length string here.
Expand Down

0 comments on commit 8775b7d

Please sign in to comment.