src/Security/Member.php
public function validate()
    {
        // If validation is disabled, skip this step
        if (!DataObject::config()->uninherited('validation_enabled')) {
            return ValidationResult::create();
        }

        $valid = parent::validate();
        $validator = static::password_validator();

        if (!$this->ID || $this->isChanged('Password')) {
            if ($this->Password && $validator) {
                $userValid = $validator->validate($this->Password, $this);
                $valid->combineAnd($userValid);
            }
        }

        return $valid;
    }
public function validate()
    {
        // If validation is disabled, skip this step
        if (!DataObject::config()->uninherited('validation_enabled')) {
            return ValidationResult::create();
        }

        $valid = parent::validate();
        $validator = static::password_validator();

        if (!$this->ID || $this->isChanged('Password')) {
            if ($this->Password && $validator) {
                $userValid = $validator->validate($this->Password, $this);
                $valid->combineAnd($userValid);
            }
        }

        return $valid;
    }
public function validate ( ) { // If validation is disabled, skip this step if ( ! DataObject :: config ( ) -> uninherited ( 'validation_enabled' ) ) { return ValidationResult :: create ( ) ; } $ valid = parent :: validate ( ) ; $ validator = static :: password_validator ( ) ; if ( ! $ this -> ID || $ this -> isChanged ( 'Password' ) ) { if ( $ this -> Password && $ validator ) { $ userValid = $ validator -> validate ( $ this -> Password , $ this ) ; $ valid -> combineAnd ( $ userValid ) ; } } return $ valid ; }
Validate this member object.
Validate this member object .