Email notification when user logs into back office / user last logged in
We are in the early stages of a new project and I would like to keep an eye on how engaged the client is.
We could log in every day and have a look around for signs of activity (their initial tasks are in custom sections, not in the content tree). But it would be a lot easier if we could receive an email notification whenever a user logs into the back office.
Any suggestions on how I could achieve this please? I've had a look at the UserService but couldn't see any appropriate event handler.
If not, is there a way to see the list of back office users with the date/time that they last logged in?
Email notification when user logs into back office / user last logged in
We are in the early stages of a new project and I would like to keep an eye on how engaged the client is.
We could log in every day and have a look around for signs of activity (their initial tasks are in custom sections, not in the content tree). But it would be a lot easier if we could receive an email notification whenever a user logs into the back office.
Any suggestions on how I could achieve this please? I've had a look at the UserService but couldn't see any appropriate event handler.
If not, is there a way to see the list of back office users with the date/time that they last logged in?
Thanks
Lotte
Hi Lotte,
you can create your own simple membership provider for backoffice users. Use the ValidateUser() method to do any stuff you like after login.
Here is a related topic: https://our.umbraco.org/forum/developers/extending-umbraco/36565-Custom-Membership-Provider
Hope this helps?
Best, Sören
Hi Sören,
I've implemented custom membership providers for Members before but didn't realise that you could for back office Users.
So I've done what you suggested:
And debugged through and all works perfectly!
Many thanks indeed
Lotte
Hey Lotte
Here is an idea
I if you look in the 'UmbracoLogs' table in the database there is a pretty good overview of what the users do :)
I am not totally sure that that still exits in version 7 tho.
Hi Lotte,
great that I could help you :-) And thanks for sharing your code!
Cheers,
Sören
For anyone who finds this and is using v7.3 or later...
This approach no longer works due to the security changes implemented in v7.3!
For more info see https://our.umbraco.org/documentation/Reference/Security/
is working on a reply...