Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author eskapism

    (@eskapism)

    Do you have any plugin installed that modifies the login behavior?

    Thread Starter pglock

    (@pglock)

    Yes, and I can’t disable the plugin. Is there some code I could add?

    Thread Starter pglock

    (@pglock)

    I found this:
    simple_history_add("action=edited&object_type=plugin&object_name=your_plugin_name");
    The login is handled by coursepress. Where would I place the simple_history code?

    Plugin Author eskapism

    (@eskapism)

    That snippet is a bit older. A more modern one is one similar to this:

    SimpleLogger()->notice(
    	"User {username} logged in",
    	array(
    		"username" => "the-username-that-logged-in"
    	)
    );

    I’m not sure where you should add it, but you should look in CoursePress for att hook that fires when a user logs in.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘User login/logout’ is closed to new replies.