This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
    xyz.qtc63355
    
            
            
                    
                                            
        
    
        I want to create an AJAX handler function for updating only the user password "onUpdatePassword". What I'm trying to do right now is this:
  UserAccount::extend(function($component) {
        $component->addDynamicMethod('onUpdatePassword', function()  {What should I do next? How do I pass form data and access components attributes and methods?
Last updated
    daftspunky
    
            
            
                    
                                            
        
    
        You can simply override the AJAX handler in your page code, or from another component:
function onUpdatePassword()
{
    // Do custom stuff
    //...
    // Call the parent handler of the account component
    $this->account->onUpdatePassword();
}1-2 of 2