public function onAfterWrite()
    {
        parent::onAfterWrite();

        if ($this->owner->PasswordEncryption != Security::config()->get('password_encryption_algorithm')) {
            $this->resetPasswordEncryption();
        }
    }
public function onAfterWrite()
    {
        parent::onAfterWrite();

        if ($this->owner->PasswordEncryption != Security::config()->get('password_encryption_algorithm')) {
            $this->resetPasswordEncryption();
        }
    }
public function onAfterWrite ( ) { parent :: onAfterWrite ( ) ; if ( $ this -> owner -> PasswordEncryption != Security :: config ( ) -> get ( 'password_encryption_algorithm' ) ) { $ this -> resetPasswordEncryption ( ) ; } }
If the PasswordEncryption for the current membrer is different than the default, update to the default.
If the PasswordEncryption for the current membrer is different than the default update to the default .