File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
library/Notifications/ProvidedHook Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace Icinga \Module \Notifications \ProvidedHook ;
66
7+ use DateTime ;
78use Icinga \Application \Hook \AuthenticationHook ;
89use Icinga \Application \Logger ;
910use Icinga \Module \Notifications \Common \Database ;
@@ -90,9 +91,10 @@ public function onLogin(User $user): void
9091 $ this ->database ->insert (
9192 'browser_session ' ,
9293 [
93- 'php_session_id ' => $ this ->session ->getId (),
94- 'username ' => trim ($ user ->getUsername ()),
95- 'user_agent ' => $ userAgent
94+ 'php_session_id ' => $ this ->session ->getId (),
95+ 'username ' => trim ($ user ->getUsername ()),
96+ 'user_agent ' => $ userAgent ,
97+ 'authenticated_at ' => (new DateTime ())->format ('Uv ' )
9698 ]
9799 );
98100 $ this ->database ->commitTransaction ();
You can’t perform that action at this time.
0 commit comments