X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/46d316b1e8e3e2742725f70c1c3fff929fe4b92c..d5ffb4bb26cc3910c5e4da8de0f6ed8e64a273fa:/index.php diff --git a/index.php b/index.php index d070f03..aa0a7d0 100644 --- a/index.php +++ b/index.php @@ -28,28 +28,40 @@ $stats = (object) $array_of_stats; $userlist = []; Hook::run(HOOKTYPE_GET_USER_LIST, $userlist); $num_of_panel_admins = count($userlist); - +$current_user = unreal_get_current_user(); +if (isset($current_user->user_meta['hibp'])) +{ + $num = $current_user->user_meta['hibp']; + Message::Fail("
Urgent
","Your password was found in a data breach $num time(s).", + "Please update your password immediately"); +} ?> -
+
-