s07e06 - Access Notifier QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
Post Reply
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

s07e06 - Access Notifier QUESTIONS/SUPPORT

Post by burt »

Addon:
Sends email to shopowner every time a successful admin login is made.

Download:
viewtopic.php?f=28&t=451

--

Support Questions and Chat about this PRO addon.
You do not have the required permissions to view the files attached to this post.
I am not here to build for you.
I am here to build with you. Let's help each other.

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
ArtcoInc
Contributor
Posts: 119
Joined: Fri Oct 25, 2019 4:19 pm
Phoenix Version: v1.0.3.0
Has thanked: 86 times
Been thanked: 17 times

Re: s07e06 - Access Notifier SUPPORT

Post by ArtcoInc »

@burt
Thank you for yet another wonderful add-on. Quick question ...

The read.me file states, "You should receive an email with some data about who just logged in."

1) Does this work ONLY when someone SUCCESSFULLY logs in?
2) Can it record when someone TRIES to log in, but is UNSUCCESSFUL?
3) If #2 above, can it be set up to ONLY record (and email) unsuccessful attempts?

For me, as a one-man-band, it's more important for me to know when someone else ATTEMPTS to log in. I don't need an email every time I log in. <g>

Thanks again!

Malcolm
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s07e06 - Access Notifier SUPPORT

Post by burt »

1. Yes
2. Yes
3. Yes

But it would need an extra bit in the hook code. Which as of this moment, does not exist as the shopowner for whom it was made did not want that - he simply wanted immediate email on each successful login. The details you are looking for are already existing at admin/action_recorder.php (ie all logins).
I am not here to build for you.
I am here to build with you. Let's help each other.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: s07e06 - Access Notifier SUPPORT

Post by ecartz »

Is it really more than two lines to change?

Code: Select all

  public function listen_processActionFail() {

Code: Select all

    $username = $GLOBALS['username'];
I can't see anything else necessary. Well, maybe the language file.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply