Merge pull request #1916 from williamboman/fix/no-autocomplete-channel-join

views/join_channel: disable autocompletion of form inputs
This commit is contained in:
Jérémie Astori 2018-01-04 00:29:52 -05:00 committed by GitHub
commit 313a321918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
<form id="join-channel-{{id}}" class="join-form" method="post" action="" autocomplete="off"> <form id="join-channel-{{id}}" class="join-form" method="post" action="" autocomplete="off">
<input type="text" class="input" name="channel" placeholder="Channel" pattern="[^\s]+" maxlength="200" title="The channel name may not contain spaces" required> <input type="text" class="input" name="channel" placeholder="Channel" pattern="[^\s]+" maxlength="200" title="The channel name may not contain spaces" required>
<input type="password" class="input" name="key" placeholder="Password (optional)" pattern="[^\s]+" maxlength="200" title="The channel password may not contain spaces"> <input type="password" class="input" name="key" placeholder="Password (optional)" pattern="[^\s]+" maxlength="200" title="The channel password may not contain spaces" autocomplete="new-password">
<button type="submit" class="btn btn-small" data-id="{{id}}">Join</button> <button type="submit" class="btn btn-small" data-id="{{id}}">Join</button>
</form> </form>