summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/ImportarPerfil/ImportarPerfil.class.php
blob: a6a01fd723b1102d6161bc10b2e5741f40f8c5be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class ImportarPerfilHooks {
	public static function afterAddNewAccount( $user, $byEmail ) {
		// Do nothing if account creation was by e-mail
		if ( $byEmail ) {
			return true;
		}
		error_log('############### Se creo una cuenta, intento importar datos del perfil de Elgg si existe');
		$username = $user->mName;
		$email = $user->mEmail;
		$importar = exec('php /srv/reevo-2020/bin/wiki/ImportarPerfil.php -n true -u '.$username.' -e '.$email);
		// return self::addRedirect( 'addnewaccount' );
	}
}