From 71c45372638b61b304ef33b1eab83b7769a7d904 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 20 Mar 2024 17:28:09 -0400 Subject: [PATCH] Client Logins Enhancement: Moved to the new media CSS Class, fixed password reveal would take you to the top of the page, moved open URI to the action bar as a button, fixed password alignment for copy to clipboard, description is now below the login name, made set button to type=button to prevent submits if wrapped in a form --- client_login_add_modal.php | 2 +- client_login_edit_modal.php | 2 +- client_logins.php | 69 +++++++++++++++++++------------------ 3 files changed, 38 insertions(+), 35 deletions(-) diff --git a/client_login_add_modal.php b/client_login_add_modal.php index 00aab3e3..40cc6d27 100644 --- a/client_login_add_modal.php +++ b/client_login_add_modal.php @@ -225,7 +225,7 @@
- +
diff --git a/client_login_edit_modal.php b/client_login_edit_modal.php index dfe8ed53..49e08bbc 100644 --- a/client_login_edit_modal.php +++ b/client_login_edit_modal.php @@ -230,7 +230,7 @@
- +
diff --git a/client_logins.php b/client_logins.php index 575ed27b..05fc667e 100644 --- a/client_logins.php +++ b/client_logins.php @@ -72,7 +72,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); } ?>"> Name - Description Username Password OTP @@ -87,23 +86,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $login_id = intval($row['login_id']); $login_name = nullable_htmlentities($row['login_name']); $login_description = nullable_htmlentities($row['login_description']); - if (empty($login_description)) { - $login_description_display = "-"; - } else { - $login_description_display = $login_description; - } $login_uri = nullable_htmlentities($row['login_uri']); if (empty($login_uri)) { $login_uri_display = "-"; } else { - $login_uri_display = "$login_uri"; + $login_uri_display = "$login_uri"; } $login_uri_2 = nullable_htmlentities($row['login_uri_2']); $login_username = nullable_htmlentities(decryptLoginEntry($row['login_username'])); if (empty($login_username)) { $login_username_display = "-"; } else { - $login_username_display = "$login_username"; + $login_username_display = "$login_username"; } $login_password = nullable_htmlentities(decryptLoginEntry($row['login_password'])); $login_otp_secret = nullable_htmlentities($row['login_otp_secret']); @@ -121,42 +115,51 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $login_software_id = intval($row['login_software_id']); ?> - "> + "> - - +
+ +
+

+ +
+ +

+
+
- - + - -