Add hook before create user

This commit is contained in:
Marco Antonio Nina
2013-03-20 13:31:32 -04:00
parent e380b8b272
commit e577dac1a2
2 changed files with 9 additions and 6 deletions

View File

@@ -193,6 +193,7 @@ class RbacUsers extends BaseRbacUsers
public function create($aData)
{
if (class_exists('PMPluginRegistry')) {
$pluginRegistry = & PMPluginRegistry::getSingleton();
if ($pluginRegistry->existsTrigger(PM_BEFORE_CREATE_USER)) {
try {
@@ -201,6 +202,7 @@ class RbacUsers extends BaseRbacUsers
throw new Exception($error->getMessage());
}
}
}
$oConnection = Propel::getConnection(RbacUsersPeer::DATABASE_NAME);
try {
$oRBACUsers = new RbacUsers();

View File

@@ -68,6 +68,7 @@ foreach ($_POST['aUsers'] as $sUser) {
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', array ('MESSAGE' => $oError->getMessage()) );
G::RenderPage("publish", "blank");
die();
}
$aData['USR_STATUS'] = 'ACTIVE';
$aData['USR_UID'] = $sUserUID;