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

        $this->emailField = $ef;
    }
public function setEmailField($ef)
    {
        $ef = trim(filter_var($ef, FILTER_SANITIZE_STRING));
        if (empty($ef)) {
            throw new InternalServerErrorException('No email field provided.');
        }

        $this->emailField = $ef;
    }
public function setEmailField ( $ ef ) { $ ef = trim ( filter_var ( $ ef , FILTER_SANITIZE_STRING ) ) ; if ( empty ( $ ef ) ) { throw new InternalServerErrorException ( 'No email field provided.' ) ; } $ this -> emailField = $ ef ; }
Sets the email field

@param string $ef

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