library/Garp/Model/Db/AuthOpenId.php
public function createNew($openid, array $props) {
        // first save the new user
        $userModel = new Model_User();
        $userId = $userModel->insert($props);
        $userData = $userModel->find($userId)->current();
        $this->insert(array(
            'openid'    => $openid,
            'user_id'   => $userId
        ));

        $this->getObserver('Authenticatable')->updateLoginStats($userId);
        return $userData;
    }
public function createNew($openid, array $props) {
        // first save the new user
        $userModel = new Model_User();
        $userId = $userModel->insert($props);
        $userData = $userModel->find($userId)->current();
        $this->insert(array(
            'openid'    => $openid,
            'user_id'   => $userId
        ));

        $this->getObserver('Authenticatable')->updateLoginStats($userId);
        return $userData;
    }
public function createNew ( $ openid , array $ props ) { // first save the new user $ userModel = new Model_User ( ) ; $ userId = $ userModel -> insert ( $ props ) ; $ userData = $ userModel -> find ( $ userId ) -> current ( ) ; $ this -> insert ( array ( 'openid' => $ openid , 'user_id' => $ userId ) ) ; $ this -> getObserver ( 'Authenticatable' ) -> updateLoginStats ( $ userId ) ; return $ userData ; }
Store a new user. This creates a new auth_openid record, but also
a new users record.
@param String $openid
@param Array $props Properties fetched thru Sreg
@return Garp_Db_Table_Row The new user data
Store a new user . This creates a new auth_openid record but also a new users record .