Giter Site home page Giter Site logo

humhub-sponsor's Introduction

HumHub-Sponsor

What does it to?

This module tracks which members invited others to register at your web site.

This is useful if you have set up your HumHub web site to only allow people to register by invitation. The module tracks the invitations and subsequent registrations.

The recorded information is not editable, but can be queried to trace how certain people came to be part of your online community. This may be useful if a member is causing problems and some action needs to be taken to prevent re-occurance.

Note: This module can only maintain its records while it is installed and enabled - HumHub itself does not record this information. There is no point installing this module after problems are being reported by your community.

humhub-sponsor's People

Contributors

stevenjoynt avatar

Stargazers

 avatar

Watchers

 avatar

humhub-sponsor's Issues

Sponsor module is stack tracing when using invite links

HumHub now supports inviting new members by link.

After submitting the initial dialog that asks for the email address, the following stack-trace is written to the log file

2023-05-16 14:38:20 [172.18.0.1][-][-][error][application]
yii\base\ErrorException: Attempt to read property "id" on null in
/var/www/localhost/htdocs/protected/modules-custom/sponsor/Events.php:35
Stack trace:
#0
/var/www/localhost/htdocs/protected/modules-custom/sponsor/Events.php(35):
yii\base\ErrorHandler->handleError()
#1 [internal function]:
sij\humhub\modules\sponsor\Events::onAfterInsertInvite()
#2
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/Event.php(312):
call_user_func()
#3
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/Component.php(642):
yii\base\Event::trigger()
#4
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/db/BaseActiveRecord.php(998):
yii\base\Component->trigger()
#5
/var/www/localhost/htdocs/protected/humhub/components/ActiveRecord.php(83):
yii\db\BaseActiveRecord->afterSave()
#6
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/db/ActiveRecord.php(615):
humhub\components\ActiveRecord->afterSave()
#7
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/db/ActiveRecord.php(570):
yii\db\ActiveRecord->insertInternal()
#8
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/db/BaseActiveRecord.php(676):
yii\db\ActiveRecord->insert()
#9
/var/www/localhost/htdocs/protected/humhub/modules/user/controllers/RegistrationController.php(153):
yii\db\BaseActiveRecord->save()
#10 [internal function]:
humhub\modules\user\controllers\RegistrationController->actionByLink()
#11
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/InlineAction.php(57):
call_user_func_array()
#12
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/Controller.php(178):
yii\base\InlineAction->runWithParams()
#13
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/Module.php(552):
yii\base\Controller->runAction()
#14
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/web/Application.php(103):
yii\base\Module->runAction()
#15
/var/www/localhost/htdocs/protected/vendor/yiisoft/yii2/base/Application.php(384):
yii\web\Application->handleRequest()
#16 /var/www/localhost/htdocs/index.php(25):
yii\base\Application->run()
#17 {main}
    in
/var/www/localhost/htdocs/protected/modules-custom/sponsor/Events.php:40
    in
/var/www/localhost/htdocs/protected/humhub/components/ActiveRecord.php:83
2023-05-16 14:38:20 [172.18.0.1][-][-][info][application] $_GET = [
    'token' => '0H85_YMwczv0yj'
    'spaceId' => '23'
]

$_POST = [
    '_csrf' =>
'Q-n3uLGHC34YAT9ByLo9ujF2kMqgzqTbbnrdVQqFCvAFs7rpwr84NVVmcRKy30n8WhLIvuuPkL0jA6gtUMpZoQ=='
    'Invite' => [
        'email' => '[[email protected]](mailto:[email protected])'
        'captcha' => 'namuoe'
    ]
]```

Release on HumHub marketplace

Would it be possible to release this module to the official marketplace?

This would greatly improve installation workflow and accessibility.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.