src/Components/AlternateAuth.php
public function setPasswordField($pf)
    {
        $pf = trim(filter_var($pf, FILTER_SANITIZE_STRING));
        if (empty($pf)) {
            throw new InternalServerErrorException('No password field provided.');
        }

        $this->passwordField = $pf;
    }
public function setPasswordField($pf)
    {
        $pf = trim(filter_var($pf, FILTER_SANITIZE_STRING));
        if (empty($pf)) {
            throw new InternalServerErrorException('No password field provided.');
        }

        $this->passwordField = $pf;
    }
public function setPasswordField ( $ pf ) { $ pf = trim ( filter_var ( $ pf , FILTER_SANITIZE_STRING ) ) ; if ( empty ( $ pf ) ) { throw new InternalServerErrorException ( 'No password field provided.' ) ; } $ this -> passwordField = $ pf ; }
Sets the password field

@param string $pf

@throws \DreamFactory\Core\Exceptions\InternalServerErrorException
Sets the password field