We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    Hello Everyone,

    Just to let you all know I have completed the module screens and have added some new system events.

    One such event is the OnWebAuthentication event This event will be invoked just before the system authenticates the web user password. The $savedpassword parameter contains the password stored inside the database. Returning the value TRUE (e.g. $e->output(TRUE)) will indicate to the system that authentication was successful. If nothing was returned then the system will continue with local authentication.

    Example:
    $e = &$modx->Event; 
    switch ($e->name) { 
    	case "OnWebAuthentication": 
    		if($userpassword=='modx'){
    			$e->output(TRUE);
    		}
    		break;
    }
    


    The above example will successfully authenticate all web users who have entered the password "modx".

    With this event you can over ride the built-in authentication system that modx uses.
      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.