src/RestfulServer.php
protected function authenticate()
    {
        $authClass = $this->config()->authenticator;
        $member = $authClass::authenticate();
        Security::setCurrentUser($member);
        return $member;
    }
protected function authenticate()
    {
        $authClass = $this->config()->authenticator;
        $member = $authClass::authenticate();
        Security::setCurrentUser($member);
        return $member;
    }
protected function authenticate ( ) { $ authClass = $ this -> config ( ) -> authenticator ; $ member = $ authClass :: authenticate ( ) ; Security :: setCurrentUser ( $ member ) ; return $ member ; }
A function to authenticate a user

@return Member|false the logged in member
A function to authenticate a user