diff --git a/lib/classes/Session/Handler.class.php b/lib/classes/Session/Handler.class.php index 6eebf2480d..653bca7422 100644 --- a/lib/classes/Session/Handler.class.php +++ b/lib/classes/Session/Handler.class.php @@ -594,6 +594,8 @@ class Session_Handler } $rs[$k]['session_id'] = (int) $rs[$k]['session_id']; $rs[$k]['ip_infos'] = $infos; + $rs[$k]['created_on'] = new \DateTime($row['created_on']);; + $rs[$k]['lastaccess'] = new \DateTime($row['lastaccess']); } return $rs; diff --git a/templates/web/login/head.twig b/templates/web/login/head.twig index 9b72cf7967..b06cd5bba2 100644 --- a/templates/web/login/head.twig +++ b/templates/web/login/head.twig @@ -12,5 +12,5 @@ {% endfor %} - + diff --git a/templates/web/user/account.html.twig b/templates/web/user/account.html.twig new file mode 100644 index 0000000000..e29e77dcde --- /dev/null +++ b/templates/web/user/account.html.twig @@ -0,0 +1,579 @@ + +
+{{ registry.get('GV_homeTitle') }}{% trans 'login:: Mon compte' %} | ++ | +
+ {% if notice != '' %}
+ {{ notice }}
+ {% endif %}
+
+ |
+
+
+ {% trans 'Mes sessions' %} + | +||||||
---|---|---|---|---|---|---|
+ | ++ {% trans 'Date de connexion' %} + | ++ {% trans 'Dernier access' %} + | ++ {% trans 'IP' %} + | ++ {% trans 'Browser' %} + | ++ {% trans 'ecran' %} + | ++ {% trans 'Session persistante' %} + | +
+ {% if session.get_ses_id() != row['session_id'] %}
+ ![]() |
+ + {{ row['created_on'] |getDate }} + | ++ {{ row['lastaccess'] |getDate }} + | ++ {{ row['ip'] }} + {{ row['ip_infos'] }} + | ++ {{ row['browser'] }} {{ row['browser_version'] }} + | ++ {{ row['screen'] }} + | ++ {% if row['token'] %}oui{% endif %} + | +
get_registry()->get('GV_homeTitle') ?> | -- - | -
- - - - - - | - -
- - | -||||||
---|---|---|---|---|---|---|
- - | -- - | -- - | -- - | -- - | -- - | -- - | -
- get_session()->get_ses_id() != $row['session_id']) {
- ?>
- ![]() |
- - - | -- - | -- - - | -- - | -- - | -- - | -