]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Disable autocomplete in setup pages for user/password of SQL and RPC as these
authorBram Matthys <redacted>
Sun, 23 Apr 2023 14:22:19 +0000 (16:22 +0200)
committerBram Matthys <redacted>
Sun, 23 Apr 2023 14:22:19 +0000 (16:22 +0200)
have nothing to do with the web login so it is only confusing.
Still allow autocomplete for the "Create account" thing though, eg for devs
doing repeated setups.

settings/install.php
settings/install2.php

index 26e563d7ba3b620c57a30948b9c412d007c03493..649e338b55dc03b90ba560931e39b741a5b519ad 100644 (file)
@@ -219,12 +219,12 @@ $writable = (is_writable("../config/")) ? true: false;
                </div>
                <div class="form-group">
                        <label for="sql_username">Username</label>
-                       <input name="sql_user" type="text" class="revalidation-needed-sql form-control" id="sql_user" aria-describedby="username_help">
+                       <input name="sql_user" type="text" class="revalidation-needed-sql form-control" id="sql_user" aria-describedby="username_help" autocomplete="new-password">
                        <small id="username_help" class="form-text text-muted">The name of SQL user</small>
                </div>
                <div class="form-group">
                        <label for="sql_password">Password</label>
-                       <input name="sql_password" type="password" class="revalidation-needed-sql form-control" id="sql_password">
+                       <input name="sql_password" type="password" class="revalidation-needed-sql form-control" id="sql_password" autocomplete="new-password">
                </div>
                <div class="form-group">
                        <label for="sql_table_prefix">Table prefix</label>
index 5c6d00e3366deb264ea20e4739a8d35865085097..720f0f204f0e5c3d8ed4f950de7dcce6e9004df1 100644 (file)
@@ -125,12 +125,12 @@ $writable = (is_writable("../config/")) ? true: false;
        </div>
        <div class="form-group">
                <label for="rpc_username">Username</label>
-               <input name="rpc_user" type="text" class="revalidation-needed-rpc form-control" id="rpc_user" aria-describedby="username_help">
+               <input name="rpc_user" type="text" class="revalidation-needed-rpc form-control" id="rpc_user" aria-describedby="username_help" autocomplete="new-password">
                <small id="username_help" class="form-text text-muted">The name of your <code>rpc-user</code> block as defined in your <code>unrealircd.conf</code></small>
        </div>
        <div class="form-group">
                <label for="rpc_password">Password</label>
-               <input name="rpc_password" type="password" class="revalidation-needed-rpc form-control" id="rpc_password">
+               <input name="rpc_password" type="password" class="revalidation-needed-rpc form-control" id="rpc_password" autocomplete="new-password">
        </div>
        <div class="text-center">
                <button id="page2_next" type="submit" class="btn btn-primary ml-3">Submit</div>