src/Forms/ConfirmedPasswordField.php
public function performReadonlyTransformation()
    {
        /** @var ReadonlyField $field */
        $field = $this->castedCopy(ReadonlyField::class)
            ->setTitle($this->title ? $this->title : _t('SilverStripe\\Security\\Member.PASSWORD', 'Password'))
            ->setValue('*****');

        return $field;
    }
public function performReadonlyTransformation()
    {
        /** @var ReadonlyField $field */
        $field = $this->castedCopy(ReadonlyField::class)
            ->setTitle($this->title ? $this->title : _t('SilverStripe\\Security\\Member.PASSWORD', 'Password'))
            ->setValue('*****');

        return $field;
    }
public function performReadonlyTransformation ( ) { /** @var ReadonlyField $field */ $ field = $ this -> castedCopy ( ReadonlyField :: class ) -> setTitle ( $ this -> title ? $ this -> title : _t ( 'SilverStripe\\Security\\Member.PASSWORD' , 'Password' ) ) -> setValue ( '*****' ) ; return $ field ; }
Makes a read only field with some stars in it to replace the password

@return ReadonlyField
Makes a read only field with some stars in it to replace the password