WPIntell

Source evidence

successful login not sent to admin

User Login Notifier for WordPress · support · 2018-09-16T03:39:00+00:00

complaintsentiment
highseverity
1.0relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 34 rows with source links

17.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
tony.localword unresolved
I’ve tried this plugin on 6 different sites. For “failed login”, notifying both user and admin works. But on 4 of the sites, “successful login” only notifies user, not admin. On 2 of the sites, notify admin for “successful login”. In other words, notify admin of login doesn’t seem to work on 4 of 6 sites, while all the other options work. I don’t think any of the other plugins I’m using affects the login process. I also checked spam folders. Hello, I have the same issue, “successful login” for admin not work. The user notification works. Emil Hi guys, Same issue – I suspect some sort of plugin conflict. In any case, here is a quick and dirty solution which worked for me (this code only sends succesfull login notifications to the admin email, but similar code could be put in to notify on failed logins etc.) Just deactivate the plugin and add this code to your child themes functions.php instead and you will get the emails: function dwl_login_notify( $user_login, $user ) { $user_id = $user->email; // get user id $admin_email = get_option( 'admin_email', $default = 'NA' ); wp_mail( $admin_email, $user_login . ' logged in just now <end>', $user_login . ' logged in just now <end>', '', '' ) ; } add_action( 'wp_login', 'dwl_login_notify', 10, 2 ); Thanks, Dennis This reply was modified 7 years, 4 months ago by mrwassen .

Comments

2 shown
Emilien 2018-11-19T11:13:00+00:00

Hello, I have the same issue, “successful login” for admin not work. The user notification works. Emil

mrwassen 2019-01-03T03:03:00+00:00

Hi guys, Same issue – I suspect some sort of plugin conflict. In any case, here is a quick and dirty solution which worked for me (this code only sends succesfull login notifications to the admin email, but similar code could be put in to notify on failed logins etc.) Just deactivate the plugin and add this code to your child themes functions.php instead and you will get the emails: function dwl_login_notify( $user_login, $user ) { $user_id = $user->email; // get user id $admin_email = get_option( 'admin_email', $default = 'NA' ); wp_mail( $admin_email, $user_login . ' logged in just now <end>', $user_login . ' logged in just now <end>', '', '' ) ; } add_action( 'wp_login', 'dwl_login_notify', 10, 2 ); Thanks, Dennis This reply was modified 7 years, 4 months ago by mrwassen .