We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    does anybody know, if there is allready a hook, which checks, if the user is allready logged (should not check the user, but the session, if allready one is logged in to the manager on the same machine, same browser) to the manager and throws a warning or lets run another callback or something like that?

    The same thing for the other way, if the machine is allready logged to another context, when trying to login to the manager.
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 3749
      • 24,544 Posts
      Doesn't one of these give you that, or am I misunderstanding your question?

      if ($mod->user->hasSessionContext('mgr')) {}
      if ($user->hasSessionContext('mgr')) {}


      You could throw in a JS dialog that would allow aborting the submit.
        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