Model_Auth_User_Token::create PHP 메소드

create() 공개 메소드

public create ( )
    public function create()
    {
        // Set hash of the user agent
        $this->user_agent = sha1(Request::$user_agent);
        // Create a new token each time the token is saved
        $this->token = $this->create_token();
        return parent::save();
    }