X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/e653740512b00c37a7fc19d9f41889f0844d6c68..452b8eada34a0857aee8b5ea2a1dcb0a550626d3:/index.php diff --git a/index.php b/index.php index 9734271..aa0a7d0 100644 --- a/index.php +++ b/index.php @@ -28,9 +28,20 @@ $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"); +} ?>