The LoginNotify extension notifies you when someone logs into your account. It can be configured to give warnings after a certain number of failed login attempts (The number is configurable, and can be different between unknown IPs/devices and known IP/devices). It can also give echo/email notices for successful logins from IPs you don't normally use. It can also set a cookie to try and determine if the login is from a device you normally use.
wfLoadExtension( 'LoginNotify' );See extension.json.
To place the loginnotify_seen_net table in a shared database, use
$wgVirtualDomainsMapping['virtual-LoginNotify'] = [ 'db' => '<shared database name>' ]; $wgLoginNotifyUseCentralId = true;