We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36763
    • 70 Posts

    It'd be great to be able go to a user, and see the full list of times and dates that they have logged in, rather than the single last time they did.

    Oh wow, thanks guys! This is what I was a similar thing of what I was looking for too, only I was hoping for a solution to log every time a user logged it. I think from what you've all presented here, I should be able to implement something now. Just needed a base to start with.
      • 3749
      • 24,544 Posts
      One approach to that would be to use the LogLogins snippet and write some code that would pull the times for a particular user from the Manager Actions log.

      If you end up modifying the LogLogins snippet, be careful because if you record any spoofable information in the log (e.g. user agent), it poses a security risk if you don't sanitized it before storing it.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting