Swat/SwatConfirmPasswordEntry.php
public function process()
    {
        parent::process();

        if ($this->password_widget === null) {
            throw new SwatException(
                "Property 'password_widget' is null. " .
                    'Expected a reference to a SwatPasswordEntry.'
            );
        }

        if ($this->password_widget->value !== null) {
            if ($this->password_widget->value !== $this->value) {
                $message = Swat::_(
                    'Password and confirmation password do not match.'
                );

                $this->addMessage(new SwatMessage($message, 'error'));
            }
        }
    }
public function process()
    {
        parent::process();

        if ($this->password_widget === null) {
            throw new SwatException(
                "Property 'password_widget' is null. " .
                    'Expected a reference to a SwatPasswordEntry.'
            );
        }

        if ($this->password_widget->value !== null) {
            if ($this->password_widget->value !== $this->value) {
                $message = Swat::_(
                    'Password and confirmation password do not match.'
                );

                $this->addMessage(new SwatMessage($message, 'error'));
            }
        }
    }
public function process ( ) { parent :: process ( ) ; if ( $ this -> password_widget === null ) { throw new SwatException ( "Property 'password_widget' is null. " . 'Expected a reference to a SwatPasswordEntry.' ) ; } if ( $ this -> password_widget -> value !== null ) { if ( $ this -> password_widget -> value !== $ this -> value ) { $ message = Swat :: _ ( 'Password and confirmation password do not match.' ) ; $ this -> addMessage ( new SwatMessage ( $ message , 'error' ) ) ; } } }
Checks to make sure passwords match

Checks to make sure the values of the two password fields are the same.
If an associated password widget is not set, an exception is thrown. If
the passwords do not match, an error is added to this widget.

@throws SwatException
Checks to make sure passwords match