+
+
+
Enabling this module will force Humhub to only accept registrations from users with an email that matches a domain from this list.
+
+
Example
Domain: gmail.com
+
+
+ Registration Accepted Email: ben@gmail.com |
+ Registration Rejected Email: ben@example.com |
+
+
+
+
+ widget('zii.widgets.grid.CGridView', array(
+ 'id' => 'user-grid',
+ 'dataProvider' => $model->resetScope()->search(),
+ 'itemsCssClass' => 'table table-hover',
+ 'columns' => array(
+ array(
+ 'name' => 'domain',
+ 'header' => 'Domain',
+ ),
+ array(
+ 'class' => 'CButtonColumn',
+ 'template' => '{update}{deleteOwn}',
+ 'updateButtonUrl' => 'Yii::app()->createUrl("//email_whitelist/admin/edit", array("id"=>$data->id));',
+ 'htmlOptions' => array('width' => '90px'),
+ 'buttons' => array
+ (
+ 'update' => array
+ (
+ 'label' => '
',
+ 'imageUrl' => false,
+ 'options' => array(
+ 'style' => 'margin-right: 3px',
+ 'class' => 'btn btn-primary btn-xs tt',
+ 'data-toggle' => 'tooltip',
+ 'data-placement' => 'top',
+ 'title' => '',
+ 'data-original-title' => Yii::t('AdminModule.views_user_index', 'Edit user account'),
+ ),
+ ),
+ 'deleteOwn' => array
+ (
+ 'label' => '
',
+ 'imageUrl' => false,
+ 'url' => 'Yii::app()->createUrl("//email_whitelist/admin/delete", array("id"=>$data->id));',
+ 'deleteConfirmation' => false,
+ 'options' => array(
+ 'class' => 'btn btn-danger btn-xs tt',
+ 'data-toggle' => 'tooltip',
+ 'data-placement' => 'top',
+ 'title' => '',
+ 'data-original-title' => Yii::t('AdminModule.views_user_index', 'Delete user account'),
+ ),
+ ),
+ ),
+ ),
+ ),
+ 'pager' => array(
+ 'class' => 'CLinkPager',
+ 'maxButtonCount' => 5,
+ 'nextPageLabel' => '
',
+ 'prevPageLabel' => '
',
+ 'firstPageLabel' => '
',
+ 'lastPageLabel' => '
',
+ 'header' => '',
+ 'htmlOptions' => array('class' => 'pagination'),
+ ),
+ 'pagerCssClass' => 'pagination-container',
+ ));
+ ?>
+
+