Merge pull request #4192 from Nachtalb/na/restrict-browser-autocomplete

Restrict what the browser should try to autocomplete
This commit is contained in:
Max Leiter 2021-04-13 12:58:24 -07:00 committed by GitHub
commit ee43e7bdf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 12 deletions

View file

@ -172,6 +172,7 @@
<input <input
id="connect:leaveMessage" id="connect:leaveMessage"
v-model="defaults.leaveMessage" v-model="defaults.leaveMessage"
autocomplete="off"
class="input" class="input"
name="leaveMessage" name="leaveMessage"
placeholder="The Lounge - https://thelounge.chat" placeholder="The Lounge - https://thelounge.chat"
@ -193,6 +194,7 @@ the server tab on new connection"
<textarea <textarea
id="connect:commands" id="connect:commands"
ref="commandsInput" ref="commandsInput"
autocomplete="off"
:value="defaults.commands ? defaults.commands.join('\n') : ''" :value="defaults.commands ? defaults.commands.join('\n') : ''"
class="input" class="input"
name="commands" name="commands"

View file

@ -3,7 +3,13 @@
<div class="header"> <div class="header">
<SidebarToggle /> <SidebarToggle />
</div> </div>
<form ref="settingsForm" class="container" @change="onChange" @submit.prevent> <form
ref="settingsForm"
class="container"
autocomplete="off"
@change="onChange"
@submit.prevent
>
<h1 class="title">Settings</h1> <h1 class="title">Settings</h1>
<div> <div>
@ -359,7 +365,7 @@ This may break orientation if your browser does not support that."
Custom highlights Custom highlights
<span <span
class="tooltipped tooltipped-n tooltipped-no-delay" class="tooltipped tooltipped-n tooltipped-no-delay"
aria-label="If a message contains any of these comma-separated aria-label="If a message contains any of these comma-separated
expressions, it will trigger a highlight." expressions, it will trigger a highlight."
> >
<button class="extra-help" /> <button class="extra-help" />
@ -382,8 +388,8 @@ expressions, it will trigger a highlight."
Highlight exceptions Highlight exceptions
<span <span
class="tooltipped tooltipped-n tooltipped-no-delay" class="tooltipped tooltipped-n tooltipped-no-delay"
aria-label="If a message contains any of these comma-separated aria-label="If a message contains any of these comma-separated
expressions, it will not trigger a highlight even if it contains expressions, it will not trigger a highlight even if it contains
your nickname or expressions defined in custom highlights." your nickname or expressions defined in custom highlights."
> >
<button class="extra-help" /> <button class="extra-help" />
@ -411,10 +417,11 @@ your nickname or expressions defined in custom highlights."
> >
<h2 id="label-change-password">Change password</h2> <h2 id="label-change-password">Change password</h2>
<div class="password-container"> <div class="password-container">
<label for="old_password_input" class="sr-only"> Enter current password </label> <label for="current-password" class="sr-only"> Enter current password </label>
<RevealPassword v-slot:default="slotProps"> <RevealPassword v-slot:default="slotProps">
<input <input
id="old_password_input" id="current-password"
autocomplete="current-password"
:type="slotProps.isVisible ? 'text' : 'password'" :type="slotProps.isVisible ? 'text' : 'password'"
name="old_password" name="old_password"
class="input" class="input"
@ -423,26 +430,26 @@ your nickname or expressions defined in custom highlights."
</RevealPassword> </RevealPassword>
</div> </div>
<div class="password-container"> <div class="password-container">
<label for="new_password_input" class="sr-only"> <label for="new-password" class="sr-only"> Enter desired new password </label>
Enter desired new password
</label>
<RevealPassword v-slot:default="slotProps"> <RevealPassword v-slot:default="slotProps">
<input <input
id="new_password_input" id="new-password"
:type="slotProps.isVisible ? 'text' : 'password'" :type="slotProps.isVisible ? 'text' : 'password'"
name="new_password" name="new_password"
autocomplete="new-password"
class="input" class="input"
placeholder="Enter desired new password" placeholder="Enter desired new password"
/> />
</RevealPassword> </RevealPassword>
</div> </div>
<div class="password-container"> <div class="password-container">
<label for="verify_password_input" class="sr-only"> Repeat new password </label> <label for="new-password-verify" class="sr-only"> Repeat new password </label>
<RevealPassword v-slot:default="slotProps"> <RevealPassword v-slot:default="slotProps">
<input <input
id="verify_password_input" id="new-password-verify"
:type="slotProps.isVisible ? 'text' : 'password'" :type="slotProps.isVisible ? 'text' : 'password'"
name="verify_password" name="verify_password"
autocomplete="new-password"
class="input" class="input"
placeholder="Repeat new password" placeholder="Repeat new password"
/> />