protected function validatePassword($password) {
        $state['error'] = true;

        if (strlen($password) < (int)$this->config->verify_password_min_length ) {
            $state['message'] = $this->__lang("password_short");

            return $state;
        }

        $state['error'] = false;

        return $state;
    }
protected function validatePassword($password) {
        $state['error'] = true;

        if (strlen($password) < (int)$this->config->verify_password_min_length ) {
            $state['message'] = $this->__lang("password_short");

            return $state;
        }

        $state['error'] = false;

        return $state;
    }
protected function validatePassword ( $ password ) { $ state [ 'error' ] = true ; if ( strlen ( $ password ) < ( int ) $ this -> config -> verify_password_min_length ) { $ state [ 'message' ] = $ this -> __lang ( "password_short" ) ; return $ state ; } $ state [ 'error' ] = false ; return $ state ; }
Verifies that a password is greater than minimal length

security requirements (ZxcvbnPhp\Zxcvbn) not checked now.
@param string $password
@return array $return ['error', 'message']
Verifies that a password is greater than minimal length