]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Users: Scratch the "Secure" column, as it's less useful nowadays that
authorBram Matthys <redacted>
Tue, 25 Apr 2023 06:33:15 +0000 (08:33 +0200)
committerBram Matthys <redacted>
Tue, 25 Apr 2023 06:33:15 +0000 (08:33 +0200)
hopefully more and more, if not all, users are secure.

We can bring it back, that's why this commit is contained.

api/users.php
users/index.php

index 659df5e429f529eac814c6d146d948eeee9dd424..fa12746696376e2e519f981a2ae3e93371f9866a 100644 (file)
@@ -30,9 +30,6 @@ foreach($users as $user)
        $oper = (isset($user->user->operlogin)) ? $user->user->operlogin." <span class=\"badge rounded-pill badge-secondary\">".$user->user->operclass."</span>" : "";
        if (!strlen($oper))
                        $oper = (strpos($user->user->modes, "S") !== false) ? '<span class="badge rounded-pill badge-warning">Services Bot</span>' : "";
-       $secure = (isset($user->tls) || $user->hostname !== "localhost") ? "<span class=\"badge rounded-pill badge-success\">Secure</span>" : "<span class=\"badge rounded-pill badge-danger\">Insecure</span>";
-       if (strpos($user->user->modes, "S") !== false)
-                       $secure = "";
        $servername = $user->user->servername;
        $reputation = $user->user->reputation;
 
@@ -46,7 +43,6 @@ foreach($users as $user)
                "Account" => $account,
                "Usermodes" => $modes,
                "Oper" => $oper,
-               "Secure" => $secure,
                "Connected to" => $servername,
                "Reputation" => $reputation,
        ];
index 6f64a871ae13263db9862296b9d4048254bbebaa..0159ca03ddff57939bdc7176dbbdd75530eb938a 100644 (file)
@@ -118,7 +118,6 @@ Click on a username to view more information.
                <th class="accountcol" scope="col"><span data-toggle="tooltip" data-placement="bottom" title="The services account name, if the user identified to services." style="border-bottom: 1px dotted #000000">Account</span></th>
                <th class="umodescol" scope="col">Usermodes <a href="https://www.unrealircd.org/docs/User_modes" target="_blank">ℹ️</a></th>
                <th class="opercol" scope="col">Oper</th>
-               <th class="securecol" scope="col"><span data-toggle="tooltip" data-placement="bottom" title="This shows [Secure] if the user is using SSL/TLS or is on localhost." style="border-bottom: 1px dotted #000000">Secure</span></th>
                <th class="uplinkcol" scope="col">Connected to</th>
                <th class="reputationcol" scope="col"><span id="reputationheader" data-toggle="tooltip" data-placement="bottom" title="The reputation score gets higher when someone with this IP address has been connected in the past weeks. A low reputation score (like <10) is an indication of a new IP." style="border-bottom: 1px dotted #000000">Rep.</span> <a href="https://www.unrealircd.org/docs/Reputation_score" target="_blank">ℹ️</a></th>
        </thead>
@@ -300,7 +299,6 @@ $(document).ready( function () {
                        { 'data': 'Account', 'className':'accountcol', 'responsivePriority': 3 },
                        { 'data': 'Usermodes', 'className':'umodescol', 'responsivePriority': 7 },
                        { 'data': 'Oper', 'className':'opercol', 'responsivePriority': 8 },
-                       { 'data': 'Secure', 'className':'securecol', 'responsivePriority': 9 },
                        { 'data': 'Connected to', 'className':'uplinkcol', 'responsivePriority': 6 },
                        { 'data': 'Reputation', 'className':'reputationcol', 'responsivePriority': 4 },
                ],