{"action":"created","issue":{"url":"https://api.github.com/repos/getgrav/grav/issues/1516","repository_url":"https://api.github.com/repos/getgrav/grav","labels_url":"https://api.github.com/repos/getgrav/grav/issues/1516/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav/issues/1516/comments","events_url":"https://api.github.com/repos/getgrav/grav/issues/1516/events","html_url":"https://github.com/getgrav/grav/issues/1516","id":233948051,"number":1516,"title":"Is there a hook for logging in as admin or any other user?","user":{"login":"notatamas","id":17623035,"avatar_url":"https://avatars3.githubusercontent.com/u/17623035?v=3","gravatar_id":"","url":"https://api.github.com/users/notatamas","html_url":"https://github.com/notatamas","followers_url":"https://api.github.com/users/notatamas/followers","following_url":"https://api.github.com/users/notatamas/following{/other_user}","gists_url":"https://api.github.com/users/notatamas/gists{/gist_id}","starred_url":"https://api.github.com/users/notatamas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notatamas/subscriptions","organizations_url":"https://api.github.com/users/notatamas/orgs","repos_url":"https://api.github.com/users/notatamas/repos","events_url":"https://api.github.com/users/notatamas/events{/privacy}","received_events_url":"https://api.github.com/users/notatamas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-06T16:20:17Z","updated_at":"2017-06-08T14:27:01Z","closed_at":"2017-06-08T14:27:01Z","body":"I would like to log each login attempts and successful logins from the users. I guess it requires a custom plugin. Is there a hook I could use for this?\r\n\r\nThe plugin would run on each login or login attempt and write a new line in a specific log file.\r\n"},"comment":{"url":"https://api.github.com/repos/getgrav/grav/issues/comments/307120253","html_url":"https://github.com/getgrav/grav/issues/1516#issuecomment-307120253","issue_url":"https://api.github.com/repos/getgrav/grav/issues/1516","id":307120253,"user":{"login":"flaviocopes","id":11783388,"avatar_url":"https://avatars3.githubusercontent.com/u/11783388?v=3","gravatar_id":"","url":"https://api.github.com/users/flaviocopes","html_url":"https://github.com/flaviocopes","followers_url":"https://api.github.com/users/flaviocopes/followers","following_url":"https://api.github.com/users/flaviocopes/following{/other_user}","gists_url":"https://api.github.com/users/flaviocopes/gists{/gist_id}","starred_url":"https://api.github.com/users/flaviocopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flaviocopes/subscriptions","organizations_url":"https://api.github.com/users/flaviocopes/orgs","repos_url":"https://api.github.com/users/flaviocopes/repos","events_url":"https://api.github.com/users/flaviocopes/events{/privacy}","received_events_url":"https://api.github.com/users/flaviocopes/received_events","type":"User","site_admin":false},"created_at":"2017-06-08T14:27:01Z","updated_at":"2017-06-08T14:27:01Z","body":"Any plugin can listen for the \"onTask.login\" event, and you can access the POST data. The event is not unique to Admin, it will fire for the frontend, too, so you need to detect if it's Admin or frontend login (if you have that feature enabled in your site)"}}
{"actor":{"display_login":"flaviocopes"}}