Once on several sites, it was necessary to set up sending emails about each user logging into the site.
Looking for a solution, I found a plugin that can do this – “Wordfence Security – Firewall & Malware Scan”.
In the settings of the plug-in, by default, sending emails about each administrator’s login to the site is enabled, and you can turn on the login message for regular users.
The plugin also allows you to configure “Google reCaptcha” and two-factor authentication, for example using the Google Authenticator application, also has a lot of other functions, such as blocking attacks, online attack logs, manually blocking IP addresses, searching for viruses, weekly email reports, etc.