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

        $this->usernameField = $uf;
    }
public function setUsernameField($uf)
    {
        $uf = trim(filter_var($uf, FILTER_SANITIZE_STRING));
        if (empty($uf)) {
            throw new InternalServerErrorException('No username field provided.');
        }

        $this->usernameField = $uf;
    }
public function setUsernameField ( $ uf ) { $ uf = trim ( filter_var ( $ uf , FILTER_SANITIZE_STRING ) ) ; if ( empty ( $ uf ) ) { throw new InternalServerErrorException ( 'No username field provided.' ) ; } $ this -> usernameField = $ uf ; }
Sets the username field

@param string $uf

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