# give/4.16.8.1/src/Framework/FieldsAPI/Password.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 31 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Framework/FieldsAPI/Password.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/Framework/FieldsAPI/Password.php
- Modified: 2023-10-16T17:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.8.1/code/src/Framework/FieldsAPI/Password.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Give\Framework\FieldsAPI;

/**
 * @since 3.0.0
 */
class Password extends Field
{
    use Concerns\HasHelpText;
    use Concerns\HasLabel;
    use Concerns\HasPlaceholder;

    const TYPE = 'password';

    /**
     * @param bool $storeAsDonorMeta
     *
     * @return $this
     */
    public function storeAsDonorMeta(bool $storeAsDonorMeta = true)
    {
        // Do not allow password fields to be stored as donor meta.
        $this->scope = null;

        return $this;
    }
}

```
